home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir33 / rfp106.zip / FORM4X.ZIP / FM.DOC < prev    next >
Text File  |  1991-10-06  |  109KB  |  2,521 lines

  1.  
  2.                    FORM MASTER 
  3.  
  4.  
  5.  
  6.  
  7.  
  8.               FORM MASTER Forms Package  version 4.x
  9.               ======================================
  10.  
  11.                    DOCUMENTATION
  12.                    =============
  13.  
  14.       Form Master is an easy to use tool  for the creation and use of  forms
  15.       customized for the specialized needs of  a business or home.  Using  a
  16.       set of versatile form  construction tools, you  can quickly create  or
  17.       edit the structure of  a form.   This form can then  be filled in  and
  18.       printed from your  computer.  Form  Master is designed  to handle  the
  19.       needs of many different users.  You  can print a form, or fill in  the
  20.       blanks on your screen and then print, or fill in the blanks and  print
  21.       only what you have typed for  use with pre-printed forms. It  supports
  22.       most of the  capabilities of  your printer such  as boldface,  italic,
  23.       subscript, superscript, underlining,  expanded text, compressed  text,
  24.       overstrike, etc.  You can use the IBM graphics character set to  print
  25.       lines and boxes.   If your  printer isn't fully  IBM compatible,  Form
  26.       Master is configurable to support most printers.  You can set up  your
  27.       form so  Form  Master includes  the  current date,  time  and/or  form
  28.       sequence number on it.  A look-up facility is included which can  look
  29.       up a "key" you enter and fill in  one or more fields on your form.   A
  30.       word wrap feature eases  entry into connected fields.   Fields can  be
  31.       defined to right, left, or center justify.  A powerful math capability
  32.       can perform calculations  on numbers in  your fields and  fill in  the
  33.       result.  Form Master handles multi-page forms which can be a  thousand
  34.       pages long.  Form Master is easy to learn and contains on-screen help.
  35.       To support other people who use your forms, you can provide additional
  36.       on-screen help in text files you create.
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.                     Disclaimer
  46.                     ----------
  47.  
  48.       No warranty  is made,  express or  implied, that  this manual  or  the
  49.       software described  is  free  of  error, or  is  consistent  with  any
  50.       particular standard of performance,  quality, or merchantability.   It
  51.       should not be relied on for solving a problem whose incorrect solution
  52.       could result in injury to a person or loss of property.  Use in such a
  53.       manner is at your own risk.
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                     1 
  62.                     CastleSoft 
  63.  
  64.  
  65.                    FORM MASTER 
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.       Section                        Contents                           Page
  77.  
  78.       1.           Installation                                            3
  79.       2.           Getting Started                                         3
  80.       3.           Running The Form Master Program                         5
  81.       3.1.         Form Master Program Main Menu                           5
  82.       3.2.         Form Master Form Editor                                 9
  83.       3.3.         Form Master Program Form Executor                      13
  84.       4.           Running The Form Executor Only                         16
  85.       5.           Advanced Features                                      17
  86.       5.1.         Function Key Re-definition                             18
  87.       5.2.         Word Processing Features                               20
  88.       5.2.1.       Look-Up Files                                          21
  89.       5.3.         Math Operations                                        23
  90.       6.           Multi-page Forms                                       26
  91.       7.           Adding More Printer Functions To Form Master           29
  92.       8.           Configuring Form Master For Your Printer               31
  93.       9.           Interfacing With Databases & Utilities                 32
  94.       10.          Customizing                                            33
  95.       11.          If You Have Computer Compatibility Problems            34
  96.       12.          Form Master Files                                      34
  97.       13.          Error Messages                                         35
  98.       14.          Registering Your Copy                                  39
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.                     2 
  125.                     CastleSoft 
  126.  
  127.  
  128.                    FORM MASTER 
  129.  
  130.       1.  Installation
  131.  
  132.       Installation of Form Master involves copying the files from the source
  133.       distribution diskette  to a  destination directory  or diskette.    On
  134.       standard 5-1/4 diskettes, some files  may be compressed to save  space
  135.       allowing Form Master to fit.  These files must be extracted before you
  136.       can access them.  Details on  any files needing extraction are in  the
  137.       READ.ME file.
  138.  
  139.       Two installation scenarios  follow, one  for a  system containing  two
  140.       floppy disk drives,  and another  for a system  containing one  floppy
  141.       disk and a hard disk drive.  Adjust these commands to comply with  the
  142.       particular configuration of your system.
  143.  
  144.       To install onto a system with  two floppy disk drives, place an  empty
  145.       formatted diskette into your "B" drive.  (Instructions on making  this
  146.       diskette bootable,  if desired,  will be  found in  your DOS  manual.)
  147.       Place the Form Master  diskette into your "A"  drive.  Then enter  the
  148.       following command:
  149.           COPY A:*.* B:
  150.  
  151.       To install onto a system containing  a hard disk, it is suggested  you
  152.       place the files in  a separate directory.   Start by placing the  Form
  153.       Master diskette into your  floppy drive.  Assuming  you are at a  "C>"
  154.       prompt (your hard drive)  and the Form Master  diskette is in your  A:
  155.       drive,  the  following  commands  will  place  these  files  into  the
  156.       directory "FORM":
  157.           MD \FORM
  158.           CD \FORM
  159.           COPY A:*.*
  160.       Prior to executing  Form Master  programs, make  sure you  are in  the
  161.       "\FORM" directory (use the "CD \FORM" command), or that this directory
  162.       is in the current path.
  163.  
  164.       It is important to keep your original copy of the Form Master diskette
  165.       in a safe place.  This protects you if your files get corrupted or you
  166.       suffer a hard disk crash.
  167.  
  168.  
  169.       2.  Getting Started
  170.  
  171.       You should browse this entire document to get an understanding of  the
  172.       functionality of Form  Master.  It  is suggested that  you print  this
  173.       document and have a copy handy when first learning it.
  174.  
  175.       Form Master  consists of  two programs.   The  first one  is the  Form
  176.       Master program, FM.EXE.  It allows you to:
  177.       o  Create, modify, and define features for forms (edit)
  178.       o  Fill in and/or print forms (execute)
  179.       o  Convert files, created with your editor, into forms (import a
  180.          form)
  181.       o  Convert a form into an edit file (export a form)
  182.  
  183.       Form Master can execute  a form (make  it ready to  fill in or  print)
  184.       with one command from a DOS prompt.  To do this enter
  185.           FM formname
  186.  
  187.                     3 
  188.                     CastleSoft 
  189.  
  190.  
  191.                    FORM MASTER 
  192.  
  193.       where "formname" is the name of your form, assuming the form exists.
  194.  
  195.       The second program, PRINTER.COM, is  used to configure Form Master  to
  196.       your own printer.   You may  need to do  this if your  printer is  not
  197.       fully Epson  LX-800  compatible,  the default  used  by  Form  Master.
  198.       PRINTER.COM is invoded by a batch procedure described in section 7.
  199.  
  200.       Executing a form is a good way to get an idea of what this package can
  201.       do for you.  To execute a  form just enter one of the following  lines
  202.       at a DOS prompt (first making sure the drive containing Form Master is
  203.       your default drive):
  204.           FM REG         <press enter>    or,
  205.           FM INVOICE     <press enter>
  206.       This invokes  the  form executor  and  displays  a form.    "REG"  and
  207.       "INVOICE" are two example  forms.  You  can fill in  a form by  typing
  208.       into various fields  on the form.   Help is  provided by pressing  F1.
  209.       You can print the form using F10.  To return to DOS, press ESC twice.
  210.  
  211.       Form Master allows you to build  a form tailored to your own  specific
  212.       needs.  Building a form involves the following sequence of operations:
  213.       1  Design your form on paper.
  214.       2  Enter the text of the form (Lesson 1 - Basics)
  215.       3  Add input fields to your form (Lesson 2 - Using Attributes)
  216.       4  Add borders to your form (Lesson 3 - Lines And Boxes)
  217.       5  Add special printer control functions (Lesson 4 - Special
  218.          Functions)
  219.       6  Define word wrap, justification, math.  Re-define function
  220.          keys.
  221.       7  Build multi-page form by repeating above steps and adding a
  222.          form page file.
  223.  
  224.       Details steps 2  through 5  are covered  by lessons  in this  package.
  225.       Forms are used (as you might have guessed) for each of these  lessons.
  226.       Step 6 is covered later under "Advanced Features".  Step 7 is  covered
  227.       under "Multi-page Forms".  To go  through the first lesson, make  your
  228.       Form Master diskette the default (i.e. place your diskette in drive  A
  229.       and change the prompt to "A>") or go to the "\FORM" directory of  your
  230.       hard disk.  Do the following:
  231.  
  232.       1  Type in "FM" and press Enter.  This starts Form Master and the
  233.          program menu appears.
  234.  
  235.       2  Press F5, then F10.  Select the form "LESSON1" using the arrow
  236.          keys and press Enter.  This loads the form containing Lesson 1.
  237.          (You may need to press NumLock to make the arrow keys work.)
  238.  
  239.       3  Press F3 twice to start the form editor and follow the
  240.          instructions on the display.
  241.  
  242.       When finished with  the lesson,  press ESC twice  to get  back to  the
  243.       menu.  To return back to DOS,  press ESC twice again.  However, to  go
  244.       on to the next lesson, do the following:
  245.  
  246.       1  Press F5, then press F10.  Select the form "LESSON2" using the
  247.          arrow keys and press Enter.  This loads the form containing
  248.          Lesson 2.
  249.  
  250.                     4 
  251.                     CastleSoft 
  252.  
  253.  
  254.                    FORM MASTER 
  255.  
  256.       2  Press F3 twice to start the editor.  Follow the instructions.
  257.  
  258.       Proceed in this  manner through  all four lessons.   If  you make  any
  259.       mistakes, just reload the form and begin editing again.
  260.  
  261.       A step by  step tutorial file  is also included.   Print  TUTORIAL.DOC
  262.       after completing the lessons  and use it as  a guide to building  your
  263.       first form.
  264.  
  265.  
  266.       3.  Running The Form Master Program
  267.  
  268.       The Form Master  program, FM.EXE, provides  the capability to  create,
  269.       modify, and execute forms.   It can also convert  a form into an  edit
  270.       file, usable by an editor or word processor.  Such a file can also  be
  271.       converted into a form.
  272.  
  273.       Most operations in Form Master are  done with function keys.  Help  is
  274.       always available using F1.  In those cases where a function key  could
  275.       cause undesirable consequences if  pressed accidently, a second  press
  276.       is required.
  277.  
  278.       Starting FM.EXE from  DOS is done  by typing "FM"  at the DOS  prompt.
  279.       The Form  Master main  menu then  appears on  the screen.   This  menu
  280.       allows you to invoke the form editor and the form executor.  The  main
  281.       menu, form editor, and  form executor are  described in the  following
  282.       sections.  Form Master can also be invoked from DOS so a form pops  up
  283.       on your display ready to be filled in.  See section 4 for details.
  284.  
  285.  
  286.       3.1.  Form Master Program Main Menu
  287.  
  288.       The Form Master main menu appears on your screen when the Form  Master
  289.       program is started.  It describes the use of the function keys and the
  290.       ESC key.  The currently  loaded form  and form  control parameters  in
  291.       effect are  shown in  the second  part  of the  menu.   The  following
  292.       diagram illustrates the major functions of this menu:
  293.  
  294.                                  F2 Create Form
  295.                   Computer                          |
  296.                    Memory                           v
  297.      Disk                    +--------+                     _________
  298.       +-------+                  |        |  F3 Edit Form      /         \
  299.       |       |  F5 Load Form    | Memory | <---------------> <FORM EDITOR>
  300.       | form  | ---------------> |  Copy  |                    \_________/
  301.       | files |                  |  of a  |                     _________
  302.       |       |  F6 Save/Update  |  Form  |  F4 Execute Form   /         \
  303.       |       | <--------------- |        | ----------------> < FORM EXEC >
  304.       +-------+                  |        |                    \_________/
  305.                  +--------+                         |
  306.                                     v
  307.                                   Print
  308.       Functions:
  309.  
  310.       ESC - Exit to  DOS:   Terminates  the Form  Master program.    Two
  311.         consecutive pushes of this key are required.  If the current
  312.  
  313.                     5 
  314.                     CastleSoft 
  315.  
  316.  
  317.                    FORM MASTER 
  318.  
  319.         form has been edited but not saved, you are reminded of this
  320.         after the  first push  of ESC.    If you  push ESC  once  by
  321.         accident, press any other key to cancel and resume with  the
  322.         program.
  323.  
  324.         ESC is also used to cancel any function key operation.   For
  325.         instance, if you type F2 by accident, press ESC to cancel.
  326.  
  327.       F1  - Help:  Displays on-screen help.
  328.  
  329.       F2  - Create Form:  Starts the form editor with a blank screen  so
  330.         a new form can  be built.  Before  the editor is started,  a
  331.         pop-up menu appears showing all the form control  parameters
  332.         such as  the  number  of  rows, columns,  etc.    These  are
  333.         described later.  Modify  them as needed  and then press  F2
  334.         again to start editing.  Help specific to the form editor is
  335.         available by pressing F1.
  336.  
  337.         Note:  Use F3 instead to continue editing an existing form.
  338.  
  339.       F3  - Edit Form:  Starts  the form editor  with the current  form,
  340.         one that  has been  previously  loaded using  F5 or  F7,  or
  341.         created using F2.   Before the editor  is started, a  pop-up
  342.         menu appears showing all the form control parameters such as
  343.         the number  of  rows, columns,  etc.   These  are  described
  344.         later.  Modify them as needed, then press F3 again to  begin
  345.         editing. Help specific  to the form  editor is available  by
  346.         pressing F1.
  347.  
  348.       F4  - Execute Form:  Executes the current form you have created or
  349.         loaded from disk.   Executing a form allows  you to fill  in
  350.         fields on the form and/or print the form.  Help specific  to
  351.         the form executor is available by pressing F1.
  352.  
  353.       F5  - Load Form from Disk:  Retrieves a form from disk and  places
  354.         it in memory so it may be edited (F3 and F9), executed (F4),
  355.         or exported (F8).  The form must have been previously  saved
  356.         on disk (F6).
  357.  
  358.         After pressing F5,  a pop-up menu  appears prompting you  to
  359.         enter the name of a form.  A form name such as "INVOICE" can
  360.         be entered on the first line.  It is not necessary to  enter
  361.         the form name extension, ".FRM".  On the second input  line,
  362.         you can specify where the  form resides - a different  drive
  363.         or directory  (e.g.  "A:" or  "D:\BUSINESS"  ).   Leave  the
  364.         second line blank to  use the current  directory.  Press  F5
  365.         again to load the form.
  366.  
  367.         Alternately, you can press F10 after pressing F5 once to see
  368.         a directory list of  forms.  Selection of  the form is  made
  369.         with the arrow keys and pressing enter.  If the second  line
  370.         of the pop-up menu is blank, the current directory is  used.
  371.         Otherwise, the directory specified is used.
  372.  
  373.       F6  - Save/Update Form to Disk:   Writes the currently loaded  (or
  374.         created) form  to  a  disk  file.   A  pop-up  menu  appears
  375.  
  376.                     6 
  377.                     CastleSoft 
  378.  
  379.  
  380.                    FORM MASTER 
  381.  
  382.         prompting you to enter the name of the form.  Enter the name
  383.         on the first input line.  It is not necessary to include the
  384.         form name extension, ".FRM".   The second input line can  be
  385.         used to specify  a different drive  or directory other  than
  386.         the current one to place the file.  Press F6 a second  time.
  387.         Form Master will let you know if this form already exists on
  388.         disk.  Therefore you will be  either creating a new file  or
  389.         replacing an old one.  Press F6 a third time to complete the
  390.         operation.
  391.  
  392.         Be sure to  use F6 to  save your editing  work, even if  you
  393.         just changed the default number  of copies to print and  did
  394.         not change the form contents.
  395.  
  396.       F7  - Import Form from Edit File:   Reads a file and places it  in
  397.         memory in a form  format.  A  pop-up menu appears  prompting
  398.         you  to enter a  file name. Press F7  a second time to  load
  399.         the file.  Importing means you can create a form using  your
  400.         favorite editor or word processor (some restrictions  apply)
  401.         and use it with this program.   If using Word Star, be  sure
  402.         to create a non-document file.   The form generated will  be
  403.         black and white (normal video) with no special attributes or
  404.         special print  functions.   You will  not be  able to  enter
  405.         information onto this form with the form executor until  you
  406.         add input fields with the form editor.  It is suggested that
  407.         after F7, edit the form (F3) to add input fields and fill in
  408.         the form  control  parameters appropriately,  then  save  it
  409.         (F6).
  410.  
  411.       F8  - Export Form to Edit File:  Writes the current form in memory
  412.         to an edit  file.  A  pop-up menu appears  prompting you  to
  413.         enter a file  name.  Press  F8 a second  time.  Form  Master
  414.         will let you know if this file already exists on disk  since
  415.         you will be either creating a  new file or replacing an  old
  416.         one.  Press F8 a third time to complete the operation.   You
  417.         should be able to use your  editor on this file.  Note  that
  418.         attributes and  special print  function characters  are  not
  419.         placed into your edit file.
  420.  
  421.       F9  - Advanced Form Features:  This allows you to add or edit  the
  422.         current advanced features  defined for the  form.   Advanced
  423.         features provide the capability to re-define function  keys,
  424.         to define  fields  with word  wrap,  justification,  look-up
  425.         tables, and math operations.
  426.  
  427.       F10 - Temporarily Go To  DOS:   Starts a  DOS shell  and you  will
  428.         receive a DOS prompt.  This does not terminate Form  Master,
  429.         it remains in  memory.   Use this to  perform DOS  functions
  430.         such as DIR, TYPE, etc., or to even run another program.  To
  431.         return to Form Master, enter "EXIT" at a DOS prompt.
  432.  
  433.       Form Control Parameters:
  434.  
  435.       Form control parameters appear on a  pop-up menu when you press F2  to
  436.       create a form or F3  to edit a form.   These parameters determine  the
  437.       size of the form,  the type of  fields that text  can be entered  into
  438.  
  439.                     7 
  440.                     CastleSoft 
  441.  
  442.  
  443.                    FORM MASTER 
  444.  
  445.       when executing, the form number,  and form printing controls.   Modify
  446.       them as required for your form.   The current values are displayed  in
  447.       inverse video fields in the pop-up menu.  Simply type over any  values
  448.       that are to be modified.  The cursor shows where you are typing.   You
  449.       can move from  one value  to the next  using the  "Enter", "Tab",  and
  450.       "Backtab" keys.  "Home" moves you to the first value and "End" to  the
  451.       last.  To begin editing, press F2 or F3 a second time.
  452.  
  453.       While in the editor, pressing "ESC" re-displays this pop-up menu.  You
  454.       can return to the main  menu by pressing "ESC"  a second time, or  you
  455.       can change a control parameter such as the number of rows, then  press
  456.       F3 to resume editing.
  457.  
  458.       To change only the form sequence number  of a form, load the form  and
  459.       press F3 to display the pop-up menu.   Tab to the "Form Number"  field
  460.       and enter a new value.  Press "ESC" to return to the main menu.  Don't
  461.       forget to save your work by using F6 to update the form on disk.
  462.  
  463.       Following is a description of each of the pop-up menu control fields.
  464.  
  465.     Number Of Rows             The  number   of  lines   in  the   form.
  466.                    Functions F2, F3, F4, F6, and F8 use this
  467.                    to limit the number of lines in the form.
  468.                    If you  need  more lines  while  editing,
  469.                    press "ESC" to display this pop-up  menu,
  470.                    increase this  number, then  press F3  to
  471.                    resume editing.  The  number or rows  may
  472.                    vary from 1 to 132 (2 pages).
  473.  
  474.     Number Of Columns          The number of columns is used ONLY BY THE
  475.                    FORM EXECUTOR (F4) to limit the number of
  476.                    columns printed.   This  number may  vary
  477.                    from 20 to 133.
  478.  
  479.     Input Fields Attributes    THESE FOUR FIELDS ARE USED TO SPECIFY THE
  480.                    ATTRIBUTES  OF  FIELDS  WHERE  THE   FORM
  481.                    EXECUTOR ALLOWS TEXT TO BE ENTERED.   See
  482.                    the Form Editor for more information.
  483.  
  484.     Form Number                The sequence number  of the  form.   This
  485.                    number can be automatically entered  onto
  486.                    your form by  the form executor.   It  is
  487.                    incremented each time you print the form.
  488.                    It can help you keep track of the  number
  489.                    of times you have filled in and printed a
  490.                    form.  The example invoice form uses  the
  491.                    form number as  the invoice number  which
  492.                    is filled in automatically each time  the
  493.                    form is executed.
  494.  
  495.     Line Feeds After Printing  The number of blank  lines to add to  the
  496.                    end  of  your  form  after  it  has  been
  497.                    printed.  This is  used (1) to align  the
  498.                    paper in your printer to the next form if
  499.                    you have  continuous  forms,  or  (2)  to
  500.                    eject the form you have just printed from
  501.  
  502.                     8 
  503.                     CastleSoft 
  504.  
  505.  
  506.                    FORM MASTER 
  507.  
  508.                    your printer.
  509.  
  510.     Number Of Copies To Print  This is the default  number of copies  to
  511.                    print when the  form executor prints  the
  512.                    form.  You can  override this default  at
  513.                    print time.
  514.  
  515.     Pre-printed Form           Specifies if non-input  portions of  your
  516.                    form are to be printed.  For printing  on
  517.                    blank  pages,  enter   "N"  here.     For
  518.                    printing on pre-printed forms, enter  "Y"
  519.                    so only the input  fields (what has  been
  520.                    typed) are printed.
  521.  
  522.  
  523.       3.2.  Form Master Form Editor
  524.  
  525.       The form  editor supports  creation  and modification  of forms.    It
  526.       allows you to move the cursor about the form and type in its contents.
  527.       It has features  to draw lines  and boxes  as well as  copy groups  of
  528.       lines from one place  to another.  You  can set attributes to  control
  529.       the colors of characters and backgrounds  on your form for use with  a
  530.       color monitor,  or  set normal,  high  intensity, inverse  video,  and
  531.       underlining for  use  with  a  monochrome  monitor.    There  are  256
  532.       different attributes and you  must choose one  to four attributes  for
  533.       input fields - areas you can type into when the form is executed.  The
  534.       four attributes for the input fields are entered on the editor  pop-up
  535.       menu.
  536.  
  537.       You  can  specify  where  the  date,  time,  and/or  form  number  are
  538.       automatically filled in  when the form  is executed.   There are  also
  539.       special printer  control  characters  which control  your  printer  to
  540.       perform  boldface,  italics,   subscript,  superscript,   underlining,
  541.       expanded text, compressed text, overstrike, etc.
  542.  
  543.       To add such features  as word wrap, field  justify, look-up, and  math
  544.       see the section on Advanced Features.
  545.  
  546.       When the  form editor  takes  control, the  form  appears on  lines  2
  547.       through 25  of your  display, or  these  lines are  blank if  you  are
  548.       creating a new form.  The first line displays "EDIT:" followed by  the
  549.       form name, the  cursor position,  the attribute of  the character  the
  550.       cursor is on,  and the active  attribute which is  used when you  type
  551.       characters onto your form.  An "Ins" appears on the first line if  you
  552.       are in insert mode meaning characters  will be inserted at the  cursor
  553.       as you type  instead of  replacing existing ones.   Another  indicator
  554.       appears when  the  cursor is  on  certain special  characters.    This
  555.       indicator gives the meaning of these special characters.
  556.  
  557.       Attributes:
  558.  
  559.       Attributes determine how a character appears on your monitor, such
  560.       as its  foreground  and  background  color,  or  highlighting  and
  561.       underlining, depending  on  what  your  monitor  supports.    Each
  562.       character on your display has its own attribute.  You have control
  563.       over how these  attributes are used  when text is  placed on  your
  564.  
  565.                     9 
  566.                     CastleSoft 
  567.  
  568.  
  569.                    FORM MASTER 
  570.  
  571.       form with function keys F2, F7, F8, and F9 (listed below).
  572.  
  573.       Attributes have two purposes.   They make your form colorful,  and
  574.       they DEFINE INPUT FIELDS WHICH ARE  PLACES YOU CAN TYPE INTO  WHEN
  575.       THE FORM IS EXECUTED.  Up to four different attributes may be used
  576.       to define input  fields.   A common  one is  inverse video  (black
  577.       characters on a white background) which has a value of "70".  This
  578.       attribute is selected with F8.  Use of attributes is important and
  579.       is covered in lesson 2.
  580.  
  581.       Functions:
  582.  
  583.       ESC - Return to Menu:   Exits  Form Generation.   After the  first
  584.         push the form control parameters  pop-up menu appears.   You
  585.         can modify any  of these  parameters at this  point.   Press
  586.         "ESC" a second time to return  to the main menu or press  F3
  587.         to resume editing.  Use the pop-up menu to change the number
  588.         of rows in your form while  editing.  Use it also to  define
  589.         up to 4 attributes that the form executor will interpret  as
  590.         input fields.
  591.  
  592.       F1  - Help: Displays on-screen help.   A condensed help screen  is
  593.         shown first.   Pressing F1 a  second time provides  detailed
  594.         help.
  595.  
  596.       F2  - Define Special  Characters &  Attributes:   Displays a  menu
  597.         which allows you to (1)  select any character including  the
  598.         special IBM graphics characters to  enter on your form;  and
  599.         (2) define any attribute to use on your form.
  600.  
  601.         Any character  in  the IBM  character  graphics set  may  be
  602.         selected by using the cursor keys.  To place it on your form
  603.         press "ESC" to resume editing, then press F10.
  604.  
  605.         Attributes to apply  characters on your  form.  They  define
  606.         colors and the  ability to underline,  highlight, and  blink
  607.         depending on what your monitor supports.  Each character  on
  608.         your  display  has  its   own  attribute  defined  for   it.
  609.         Attributes are used  by Form  Master to  designate areas  on
  610.         your form where information may  be filled in when the  form
  611.         is executed.  It is up to you to define these input  fields.
  612.         You must give them a  different attribute than other  places
  613.         on your form.  The  suggested attribute for input fields  is
  614.         inverse video  (attribute 70).   Select  it by  pressing  F8
  615.         while editing.  You  can then move the  cursor to where  the
  616.         field will be and press the space bar repeatedly to watch it
  617.         appear.  This F2 menu allows you to define any attribute for
  618.         use.
  619.  
  620.         There are three functions associated with this special menu:
  621.            o  Select a character
  622.            o  Select the foreground component of the attribute
  623.            o  Select the background component of the attribute
  624.         Change the function by pressing  the Return key.   Selection
  625.         is made using the cursor control keys.
  626.  
  627.  
  628.                     10 
  629.                     CastleSoft 
  630.  
  631.  
  632.                    FORM MASTER 
  633.  
  634.       F3  - Start/Erase Line or Box:  A "Start/Erase line or box" pop-up
  635.         menu appears.   Enter  "1" for  single line  style, "2"  for
  636.         double line style,  or "3"  for erase.   Press  F3 a  second
  637.         time.  The pop-up menu  disappears and a blinking  indicator
  638.         appears at the cursor position to mark where the line or box
  639.         will start  from.   This  starts the  operation.   Move  the
  640.         cursor to the end of the  line or to the opposite corner  of
  641.         the box and use F4 to finish.
  642.  
  643.       F4  - Draw/Erase Line or Box:   Either a "Draw Line", "Draw  Box",
  644.         "Erase Line", or "Erase Box"  pop-up menu appears.   Drawing
  645.         or erasing depends on  the choice made with  F3.  A line  is
  646.         drawn or erased if the cursor  is in the same row or  column
  647.         as the blinking indicator placed by F3.  Otherwise a box  is
  648.         drawn or erased.   Press F4 a second  time to draw or  erase
  649.         the line or box from the blinking indicator marked using  F3
  650.         to the current cursor position.   Lines and boxes are  drawn
  651.         using the active attribute.  The erase mode blanks lines and
  652.         boxes to  the background  portion of  the active  attribute.
  653.         Therefore make sure the active attribute is what is  desired
  654.         before using this key.  Form Master attempts to connect  all
  655.         lines and boxes wherever they  meet, even single lines  with
  656.         double lines.
  657.  
  658.       F5  - Pick Line(s):  A "Pick Lines" pop-up menu appears.  You  can
  659.         specify the number of lines to pick from 1 to 24,  beginning
  660.         with the line the cursor falls  on.  Press F5 a second  time
  661.         to pick the lines.   Use F6 to  copy these lines to  another
  662.         place.
  663.  
  664.       F6  - Put Line(s):  An "Insert n lines" pop-up menu appears  where
  665.         "n" is  the number  of lines  picked with  F5.   Press F6  a
  666.         second time  to  copy the  picked  lines into  the  position
  667.         before the line containing the cursor.
  668.  
  669.       F7  - Use Normal Attribute:  The active attribute is set to normal
  670.         video which has white characters on a black background (07).
  671.         Further typing,  lines, and  boxes  will use  normal  video.
  672.         Note that white appears as green or amber on some monochrome
  673.         monitors.
  674.  
  675.       F8  - Use Inverse Video  Attribute:  The  active attribute is  set
  676.         to inverse  video, black  characters on  a white  background
  677.         (70).  Further  typing, lines,  and boxes  will use  inverse
  678.         video.
  679.  
  680.       F9  - Define any Attribute:   A pop-up  menu appears allowing  any
  681.         value to  be entered  as  the active  attribute.   The  last
  682.         attribute defined  with F2  or F9  is listed  as a  default.
  683.         Further typing, lines, and boxes will use this attribute.
  684.  
  685.       F10 - Type Special Character:  The special character defined  with
  686.         F2 is entered onto the form at the cursor position using the
  687.         active attribute.
  688.  
  689.  
  690.  
  691.                     11 
  692.                     CastleSoft 
  693.  
  694.  
  695.                    FORM MASTER 
  696.  
  697.       Other Form Editor Features
  698.  
  699.       Alt-F1              Execute view:  shows how form looks without
  700.                   special printer characters (as when executing)
  701.       Home                Move cursor to line 1 and column 1.
  702.       End                 Move cursor to last row and column 133
  703.       Tab                 Move cursor right 8 columns.
  704.       BackTab             [Shift-Tab]  Moves cursor left 8 columns.
  705.       PgUp                Move form down 23 lines.
  706.       PgDn                Move form up 23 lines.
  707.       Insert              Toggle between insert and overwrite text.
  708.       Delete              Delete character at the cursor
  709.       Control Right Arrow Move cursor to column 133.
  710.       Control Left Arrow  Move cursor to column 1.
  711.       Control N           Insert blank line at cursor.
  712.       Control Y           Delete line at cursor.
  713.       Control D           Place current date on form (will not update)
  714.       Control T           Place current time on form (will not update)
  715.  
  716.       Special characters may be  inserted in your form  using the "Alt"  key
  717.       and pressing  a letter.    These perform  special functions  when  you
  718.       execute and/or  print  your  form  although they  are  not  seen  when
  719.       executing it.  The following are defaults:
  720.       Alt-B   Print Boldface, Enhanced text
  721.       Alt-C   Print Compressed text (17 characters per inch)
  722.       Alt-D   Enter the current date when executing form
  723.       Alt-E   Print Elite text (12 characters per inch)
  724.       Alt-F   Enter the form sequence number when executing form
  725.       Alt-H   Print Higher, Superscript
  726.       Alt-I   Print Italic text
  727.       Alt-L   Print Lower, Subscript
  728.       Alt-O   Overstrike with next line (skip line feed after
  729.           printing line - therefore 2 lines are printed on top of
  730.           each other)
  731.       Alt-P   Print Pica text (10 characters per inch)
  732.       Alt-T   Enter the current time when executing form
  733.       Alt-U   Print with Underline
  734.       Alt-X   Print Expanded text
  735.       Other Alt-letter  combinations  can be  defined  as needed  for  other
  736.       printer functions.    Refer to  the  section on  Adding  More  Printer
  737.       Functions To Form Master.
  738.  
  739.       Notes:
  740.  
  741.       If  Alt-D,  Alt-F,  or Alt-T is used adjacent to one of the other Alt-
  742.       letters, it should be placed second.  For example, to have the current
  743.       date underlined place the characters in the following order:
  744.       Alt-U Alt-D   .          (See the example Invoice form.)
  745.  
  746.       If  you   place  one   Alt-U  character   on  a   line  to   underline
  747.       characters, underlining continues  only to the  last character on  the
  748.       line.  To continue  underlining to the right  side of the form  beyond
  749.       the last character, place a second Alt-U at the right end of the line.
  750.  
  751.  
  752.  
  753.  
  754.                     12 
  755.                     CastleSoft 
  756.  
  757.  
  758.                    FORM MASTER 
  759.  
  760.       3.3.  Form Master Program Form Executor
  761.  
  762.       The form executor is used to fill in forms and/or print them.  You can
  763.       print to your  printer or to  a file if  your printer is  unavailable.
  764.       The contents of all form fields can be saved to a file.  Likewise, you
  765.       can load  all  the  form fields  from  a  file.   This  is  handy  for
  766.       complicated forms with many  input fields, or  to review how  previous
  767.       forms such  as invoices  were  filled out.    The form  executor  also
  768.       handles such features as word  wrap, field justify, look-up, and  math
  769.       operations.
  770.  
  771.       When the form  executor takes  control, the  form appears  on lines  2
  772.       through 25 of your  display.  The  special printer control  characters
  773.       are not visible.  Automatic form  date, numbering, and time will  have
  774.       updated your form if  you included these options  while editing.   The
  775.       first  line  displays  "EXEC:"  followed  by  the  form  name,  cursor
  776.       position, and field number  (if the cursor  is in a  field).  An  "Ins
  777.       Mode" appears on  the first  line if you  are in  insert mode  meaning
  778.       characters will  be inserted  at the  cursor as  you type  instead  of
  779.       replacing existing ones.
  780.  
  781.       The following describes of the  default functions available.  Keep  in
  782.       mind that it  is possible to  leave out some  of these functions,  add
  783.       others, or even change the function  keys used.  This is  accomplished
  784.       using advanced features  described later.   Those functions  available
  785.       for your form can be displayed using F1 (help).
  786.  
  787.       ESC - Exit  Form  Execute:    Terminates  form  execution.     Two
  788.         consecutive pushes of this key are required.
  789.  
  790.       F1  - Help:  Displays on-screen help.   Basic help information  is
  791.         shown first.   Pressing F1 a  second time provides  detailed
  792.         generic help.   Pressing F2  instead causes  Form Master  to
  793.         display the file having the same name as the form but with a
  794.         ".HLP" extension.  Such a file is a custom help file.  It is
  795.         built with an editor  to support other  people who use  your
  796.         form.   Pressing  any other  key  after the  first  F1  push
  797.         resumes the form executor.
  798.  
  799.         Note:   If  the  function keys  have  been  re-defined,  the
  800.         generic help is not  available.  Pressing  F1 a second  time
  801.         displays the  form's customized  help  file instead  (if  it
  802.         exists).
  803.  
  804.       F2  - Restore Form:   Restores  the  form back  to when  the  form
  805.         executor was  started, ready  to  be filled  in.   The  only
  806.         difference is the form number will have been incremented  if
  807.         you had printed the form, and  you will have a new date  and
  808.         time if these automatically fill in.
  809.  
  810.       F3  - Go to Next/Prev Page:  This is available on multi-page forms
  811.         only.  A pop-up menu appears  allowing you to switch to  the
  812.         next or previous page.  Pressing F1 switches to the previous
  813.         page and F3 to the next.
  814.  
  815.  
  816.  
  817.                     13 
  818.                     CastleSoft 
  819.  
  820.  
  821.                    FORM MASTER 
  822.  
  823.         Note:  Control-PgDn also switches  you to the next page  and
  824.         control-PgUp the previous page.
  825.  
  826.       F4  - Field Look-up:    Those  fields  defined  for  look  up  are
  827.         processed.  Their field  contents are compared against  look
  828.         up files.  In each case  one or more fields may be  replaced
  829.         with information from these files.
  830.  
  831.         F4 processes all look-up  fields in your  form in one  step.
  832.         To look-up the field  that the cursor  is currently in,  use
  833.         Alt-F.
  834.  
  835.       F5  - Temporarily Go To DOS:  Runs  a DOS shell and you receive  a
  836.         DOS prompt.  Use this to perform DOS functions such as  DIR,
  837.         TYPE, COPY, etc., or even to run another program.  To return
  838.         to the form executor enter EXIT at a DOS prompt.
  839.  
  840.       F6  - Perform Math:   Performs  math operations  on numbers  taken
  841.         from specified fields.   Results can be  placed into one  or
  842.         more fields.
  843.  
  844.       F7  - Load fields from an edit file:  All the fields on your  form
  845.         are filled in using lines from a file of your choice.   When
  846.         loading fields from a file, each line from the file is  used
  847.         to fill in one field on the form.  If a field is longer than
  848.         the line used to fill it,  the field is blank filled at  the
  849.         end. Fields are filled until the  end of file is reached  or
  850.         when all the fields  are filled.  This  function is used  to
  851.         re-load entries saved earlier with F8.
  852.  
  853.         After pressing  F7, a  "Load  fields" pop-up  menu  appears.
  854.         Enter a file name and press F1 to continue.  Alternately,  a
  855.         directory listing  can  be  displayed  by  entering  a  name
  856.         containing the wild character  "*".  For instance,  entering
  857.         "*.SAV" causes all files ending  in ".SAV" to be  displayed.
  858.         Then the "Load fields" pop-up menu appears again.
  859.  
  860.         To load the form fields again, press F7.  The "Load  fields"
  861.         pop-up menu now shows a new option.  You can now use F10  to
  862.         continue reading from  the current  load file;   or you  can
  863.         specify a new load file and  press F1.  (Alt-L performs  the
  864.         same function as the F7-F10 combination in one step.)
  865.  
  866.       F8  - Save fields to an edit file:   Saves your form's fields  for
  867.         later use.  When saving the  fields to a file, the  contents
  868.         of each form input field are used in order to fill the lines
  869.         of the edit file.  Use this option to save your form entries
  870.         if you  would like  to use  them again  (F7), or  to make  a
  871.         record of what you typed.
  872.  
  873.         After pressing  F8, a  "Save  fields" pop-up  menu  appears.
  874.         Enter a file  name and press  F1 to continue.   Form  Master
  875.         checks for the existence of this file.  If it is a new file,
  876.         you are prompted  to press  F8 to create  it.   If the  file
  877.         exists, a pop-up menu allows you to append (add to the  end)
  878.         to the file or replace it.  Alternately, a directory listing
  879.  
  880.                     14 
  881.                     CastleSoft 
  882.  
  883.  
  884.                    FORM MASTER 
  885.  
  886.         can be  displayed by  entering a  name containing  the  wild
  887.         character "*".   For instance, entering  "*.SAV" causes  all
  888.         files ending  in ".SAV"  to be  displayed.   Then the  "Save
  889.         fields" pop-up menu appears again.
  890.  
  891.         Later, after modify the form fields, use F8 to save the form
  892.         fields again.  The "Save fields" pop-up menu now shows a new
  893.         option.  You can now use  F10 to append to the current  save
  894.         file,  or  you can  specify a new  save file  and press  F1.
  895.         (Alt-S performs the same function as the F8-F10  combination
  896.         in one step.)
  897.  
  898.       F9  - Print to a file:   A "Print to  a file" pop-up menu  appears
  899.         showing the  current  printer configuration.    To  continue
  900.         enter a file name.  You  can also change the default  number
  901.         of copies  to print  that  has been  defined for  the  form.
  902.         Press F9 again.   You are now prompted  to press F9 a  third
  903.         time to create the file or replace it, whichever applies.
  904.  
  905.         Printing to  a  file  is  useful  if  your  printer  is  not
  906.         available.   The file  that is  written contains  the   same
  907.         characters including  printer configuring  escape  sequences
  908.         which would normally have  gone to your  printer if you  had
  909.         used F10.    To send  the  contents  of this  file  to  your
  910.         printer, use the DOS copy command (i.e., COPY filename PRN).
  911.  
  912.       F10 - Print to your printer:   A "Print form" pop-up menu  appears
  913.         showing the  current  printer configuration.    The  default
  914.         number of copies to print can  be change at this point.   To
  915.         continue, press  F10  again.    Forms  are  printed  to  the
  916.         standard printer  device, PRN,  unless redirected  (see  the
  917.         section on Customizing).
  918.  
  919.       Note:     The form sequence number is incremented by one each time the
  920.         form is printed.
  921.  
  922.       Additional functions can be defined using advanced features  described
  923.       later.  These are:
  924.  
  925.       o  List a file one page at a time.
  926.       o  Run another program.
  927.       o  Perform a DOS command such as DIR, COPY, batch file, ...
  928.  
  929.       Other Form Executor Features
  930.  
  931.       Tab          Go to beginning of next input field.
  932.       Return       Go to beginning of next input field, or in the case
  933.                of a wrapping field, go to the wrap-to field
  934.       BackTab      [Shift-Tab]  Go to beginning of previous input field.
  935.       Home         Move cursor to row 1 and column 1.
  936.       End          Move cursor to the last row and column.
  937.       PgUp         Move form down 23 lines.
  938.       PgDn         Move form up 23 lines.
  939.       Control PgUp Switch to the previous form page (multi-page forms)
  940.       Control PgDn Switch to the next form page (multi-page forms)
  941.       Insert       Toggle between insert and overwrite text.
  942.  
  943.                     15 
  944.                     CastleSoft 
  945.  
  946.  
  947.                    FORM MASTER 
  948.  
  949.       Delete       Delete character in the input field at cursor.
  950.       Control Return  Delete characters from cursor position to the
  951.                end of the field.
  952.       Alt-F        Perform look-up for the field the cursor is currently
  953.                in.
  954.       Alt-L        Load form fields again from currently open load file.
  955.                This is the same as an F7, F10 combination.
  956.       Alt-S        Save form fields and append them to the currently
  957.                open save file.  This is the same as an F8, F10
  958.                combination.
  959.  
  960.  
  961.       4.  Running The Form Executor Only
  962.  
  963.       Previous versions of Form Master had a separate form executor program,
  964.       FORM.EXE.     This  program   is  not   included  because   of   space
  965.       considerations for  5-1/4  inch  floppies.   However,  FM.EXE  can  be
  966.       invoked as a  form executor  only.  This  is the  preferred method  of
  967.       executing forms, especially if other  people will be using your  form.
  968.       Simply enter from DOS:
  969.           FM formname
  970.       where "formname" is the name  of the form you  wish to execute.   Your
  971.       form then appears on the screen ready to be filled in and/or  printed.
  972.       The ".FRM" file extension is not necessary.  If you enter
  973.           FM *
  974.       instead, a "Load form" pop-up menu appears.  You can enter a form name
  975.       or select one from a directory list.   To load a form directly,  enter
  976.       the name,  its disk  drive and/or  directory (leave  blank if  in  the
  977.       current directory), and press F5.   To select a form from a  directory
  978.       list, enter  a disk  drive and/or  directory (leave  blank if  current
  979.       directory), press F10 to  display the forms  in the directory,  select
  980.       one with the arrow keys, and press "Enter" to load it.
  981.  
  982.       Details on form execution are in section 3.3.
  983.  
  984.       There are two other methods of  invoking Form Master making it  useful
  985.       as a menu  interface to  another application.   The  following can  be
  986.       entered from a DOS prompt or can be part of a batch file:
  987.  
  988.       FM formname input output
  989.  
  990.           Form Master reads in the form "formname", load its fields from
  991.           the file "input", then executes  the form.  Upon exiting,  the
  992.           form fields are saved in the file "output".
  993.  
  994.       FM formname iofile
  995.  
  996.           Form Master reads in the form "formname", load its fields from
  997.           the file "iofile", then executes the form.  Upon exiting,  the
  998.           form fields are saved back into the file "iofile".
  999.  
  1000.       In each case the input  file does not have to  exist.  One example  of
  1001.       invoking FM.EXE this way is  in printer configuration, sections 7  and
  1002.       8.  The CONFIG.BAT procedure allows you to create or modify a  printer
  1003.       configuration save  file  which  PRINTER.COM uses  to  create  FM.PRT.
  1004.       (Form Master uses FM.PRT to override its default printer configuration
  1005.  
  1006.                     16 
  1007.                     CastleSoft 
  1008.  
  1009.  
  1010.                    FORM MASTER 
  1011.  
  1012.       when printing).
  1013.  
  1014.  
  1015.       5.  Advanced Features
  1016.  
  1017.       Advance feature editing  provides such functions  as function key  re-
  1018.       definitions, word wrap, field  justify, look-up, and math  operations.
  1019.       These features are accessed through F9  on the main menu after a  form
  1020.       has been  loaded  or  created.   Forms  edited  in  this  manner  have
  1021.       additional information added  to them  which is  utilized during  form
  1022.       execution.
  1023.  
  1024.       To better  understand  how  these  features  may  work  for  you,  try
  1025.       executing the form FEATURES.FRM.  Enter from a DOS prompt:
  1026.           FM FEATURES
  1027.       Follow the instructions on the form.
  1028.  
  1029.       Three special forms have been set up for Form Master so it can support
  1030.       addition and modification of advanced features for your forms:
  1031.      FMKEY.FM   for re-defining the functions keys, adding new
  1032.             functions,
  1033.      FMWRD.FM   for defining word wrap, field justify, field look-up,
  1034.             and read only fields,
  1035.      FMMTH.FM   for defining math operations.
  1036.       Form Master displays  information about  the form you  are working  on
  1037.       using these three  special forms.   Simply fill in  and/or modify  the
  1038.       information you see to add special features to your form.
  1039.  
  1040.       Pressing F9 twice on the main menu displays a pop-up menu giving you 4
  1041.       choices:  go to  (1) function key  re-definition, (2) word  processing
  1042.       features, (3) math operations, and (4) return to the main menu.   Each
  1043.       of the first three choices causes one of the above special forms to be
  1044.       executed.  You then fill it in.  To assist you, each special form  has
  1045.       its own  custom help  file.   Before  the  pop-up menu  is  displayed,
  1046.       however, three temporary files  are created from  your form which  are
  1047.       used to fill in  fields on the above  special forms.  These  temporary
  1048.       files are modified when you execute the special forms.  A fourth file,
  1049.       FIELDS.LST, is created which  lists the position and  size of all  the
  1050.       fields on your form.  It can be displayed while you are filling in and
  1051.       modifying features.  When you exit a special form, the pop-up menu  is
  1052.       presented again.  Upon returning to the main menu, the information  in
  1053.       the three  temporary  files is  merged  with  your form  so  the  form
  1054.       executor can utilize it.  Don't forget  to save your form (F6 on  main
  1055.       menu) so your work will not be lost.
  1056.  
  1057.       The word processing features and math operations special forms require
  1058.       you to identify  fields by their  number.  Form  Master numbers  input
  1059.       fields in the following way:  The first  field is field number 1.   It
  1060.       is where the cursor first lies when you execute the form (an exception
  1061.       is where the first  field does not  lie on the  first screen in  which
  1062.       case you must  tab to get  to it).   Pressing the Tab  key places  the
  1063.       cursor into field 2.  Pressing it again places it into field 3, and so
  1064.       on.  For your convenience, a  function key on the word processing  and
  1065.       math operations special  forms has  been defined to  display the  file
  1066.       FIELDS.LST showing you  the location and  size of each  field.  It  is
  1067.       also helpful to have a printed copy of your form handy.
  1068.  
  1069.                     17 
  1070.                     CastleSoft 
  1071.  
  1072.  
  1073.                    FORM MASTER 
  1074.  
  1075.       Since the word processing feature  and math operation definitions  are
  1076.       tied to the numbering of your  fields, these features may not work  if
  1077.       you add or delete fields on your form.  Therefore, if you edit a  form
  1078.       in such a way as to cause changes in the numbering of its fields,  you
  1079.       must make corresponding  changes to its  features using these  special
  1080.       forms.
  1081.  
  1082.       Further information regarding advanced features follows.  FEATURES.FRM
  1083.       is a good  form to  experiment with  to better  learn how  to use  the
  1084.       special feature forms.   Start Form Master (enter  from DOS:  FM)  and
  1085.       load FEATURES (F5).   Press  F9 twice and explore the special  feature
  1086.       forms:  F1, F2, and F3.  Try making changes, then execute FEATURES  to
  1087.       see what happens.
  1088.  
  1089.  
  1090.       5.1.  Function Key Re-definition
  1091.  
  1092.       A special form is used  to allow you to  change how function keys  are
  1093.       interpreted when your form  is executed.  The  only function key  that
  1094.       can't be altered is F1, which is always  used for help.  This form  is
  1095.       invoked from the main menu by pressing F9 twice followed by F1.
  1096.  
  1097.       There are two sides to this form.  The left side is used for  function
  1098.       key description  information.   When  the F1  help button  is  pressed
  1099.       during form execution, this information is displayed in the help  pop-
  1100.       up window.
  1101.  
  1102.       The right side tells Form Master what  to do when the key is  pressed.
  1103.       The following table shows commands  which can be defined for  function
  1104.       keys 2 through 10.
  1105.  
  1106.       Default
  1107.        Key    Help description for key     Command
  1108.       -----   --------------------------   --------
  1109.     2     Reset form (Start over)      RST
  1110.     3     Go to next/prev page         PAG
  1111.     4     Perform field look-ups       LUP
  1112.     5     Temporarily go to DOS        DOS
  1113.     6     Perform math operations      MTH
  1114.     7     Load fields from a file      LOD
  1115.     8     Save fields to a file        SAV
  1116.     9     Print form to a file         PRF
  1117.        10     Print form to your printer   PRP
  1118.  
  1119.       Additional commands:
  1120.  
  1121.     -    TYP xxxx   List the file "xxxx" one page at a time.
  1122.     -    DOS xxxx   Performs the DOS command "xxxx".  (i.e. to
  1123.             see directory of forms use:  "DOS DIR *.frm")
  1124.     -    EXE xxxx   Runs the program "xxxx".  You must include the
  1125.             ".EXE" or ".COM" extension in the program name.
  1126.             (i.e. if you would normally start your editor with
  1127.             "ED LETTER.DOC" use:  "EXE ED.EXE LETTER.DOC")
  1128.  
  1129.       During form execution,  both the EXE  and DOS commands  save the  form
  1130.       field contents to FM.SAV before control is turned over to the  program
  1131.  
  1132.                     18 
  1133.                     CastleSoft 
  1134.  
  1135.  
  1136.                    FORM MASTER 
  1137.  
  1138.       or to  DOS.   This  provides  access to  the  form field  contents  by
  1139.       whatever you run with these options.   Upon completion of the  program
  1140.       or DOS command, the contents of FM.SAV are loaded back into the  form.
  1141.       Thus a  utility  invoked with  a  function key  may  be used  to  take
  1142.       information from your form  and add it to  a database, or to  retrieve
  1143.       information from a database and place it onto your form.  There is one
  1144.       exception:  when the  DOS command is  used without arguments  (default
  1145.       for function key 5), a DOS prompt  will be received but FM.SAV is  not
  1146.       utilized.
  1147.  
  1148.       Example:
  1149.  
  1150.       Consider a form named "ACCNT".  Suppose you want the person using this
  1151.       form to only be able to reset the form and to print the form.  Suppose
  1152.       further you want to define these functions as F2 and F3  respectively.
  1153.       Then the first two rows should look like:
  1154.       F2  Reset form (Start over)       RST
  1155.       F3  Print form                    PRP
  1156.       The remaining 7 rows should be blank.  To assist the person using  the
  1157.       form, you should create a  help file with your  editor by the name  of
  1158.       ACCNT.HLP to explain how to use it.   This help file should be in  the
  1159.       same directory as ACCNT.FRM.
  1160.  
  1161.       To facilitate  filling in  function key  descriptions, the  left  side
  1162.       fields have been  defined as  look-up fields.   For  instance, if  you
  1163.       place "LOD" in a  left side field (leaving  the cursor in that  field)
  1164.       and press Alt-F, "Load fields from a file" will be substituted.
  1165.  
  1166.       WARNING:    Use  of  this  form  will  mean  the  generic  help  file,
  1167.       FMEXEC.HLP, is no longer be accessible.  Recall that during  execution
  1168.       pressing F1 displays a help pop-up window.  At this point you can  (1)
  1169.       press F1 again to see the generic help file, FMEXEC.HLP, or (2)  press
  1170.       F2 to see a form  specific help file which has  the same name as  your
  1171.       form but a ".HLP" extension, or (3) any other key to resume execution.
  1172.       If you redefine  the function  keys, Form Master  assumes the  generic
  1173.       help file no longer  applies.  Therefore, after  pressing F1 you  will
  1174.       have 2 choices, (1) press F1 again  to see a form specific help  file,
  1175.       or (2) any other key  to resume.  If other  people will be using  your
  1176.       form you should provide a custom help file for it.
  1177.  
  1178.       Notes:
  1179.  
  1180.       IF YOU DO NOT  WANT TO RE-DEFINE THE  FUNCTION KEYS, LEAVE ALL  FIELDS
  1181.       BLANK BEFORE EXITING  THIS FORM.   Only if all  fields are blank  will
  1182.       Form Master assume that you want  to use the default key  definitions.
  1183.       If you choose to re-define the function keys, only those functions you
  1184.       fill in will be possible.
  1185.  
  1186.       Entries made  on  this form  are  not checked  until  form  execution.
  1187.       Improperly  defined  function  keys  cause  an  error  message  to  be
  1188.       displayed when tried.
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.                     19 
  1196.                     CastleSoft 
  1197.  
  1198.  
  1199.                    FORM MASTER 
  1200.  
  1201.       5.2.  Word Processing Features
  1202.  
  1203.       A special form is used to define justification, word wrap, read  only,
  1204.       and look-up definitions  for fields.   This form is  invoked from  the
  1205.       main menu by pressing F9 twice followed by F2.
  1206.  
  1207.       Field justification and word  wrap operations are handled  dynamically
  1208.       as you fill in the  form.  Fields defined  to justify right, left,  or
  1209.       center will be justified at  the time you move  the cursor out of  the
  1210.       field.  Word wrapping occurs as you  type and is always on for  fields
  1211.       defined to have it.
  1212.  
  1213.       Turning on word wrapping  for a field is  done by specifying the  next
  1214.       field wrapping is to take place to.  For instance, field 1 may wrap to
  1215.       field 2, 2 to 3, etc.   However, wrapping doesn't have to occur  about
  1216.       consecutive fields.   You can  define two adjacent  columns of  fields
  1217.       where each column wraps independently  as you type (notice one  column
  1218.       would have even field numbers and the other odd).
  1219.  
  1220.       Read only fields are useful for information that is loaded from a file
  1221.       or database which  is to  be displayed but  not modified.   The  first
  1222.       field of this special form shows the name of the form you are editing.
  1223.       It is a read only field and you are not allowed to modify it.
  1224.  
  1225.       The look-up facility of Form Master  is a convenient and powerful  way
  1226.       to fill in many fields  in your form at once.   You can place  "Jones"
  1227.       into a look-up field and Form Master can then replace "Jones" with the
  1228.       full name  and  fill  in  his address  into  other  fields.    Another
  1229.       application could be entering a part  number and Form Master fills  in
  1230.       the description and price  into other fields.   Rules for the  content
  1231.       and naming of look-up files are given below.  Three different look  up
  1232.       files may be defined for  your form.  A field  can use any one of  the
  1233.       three as you specify on this form.  Field look-ups require the user to
  1234.       press F4 (unless re-defined) or Alt-F to perform.
  1235.  
  1236.       Fields are specified  by their  number.   They are  numbered in  order
  1237.       beginning with 1.   Use F6  to display  all the fields  in order  with
  1238.       their number, row, column, and size.   (F6 has been redefined on  this
  1239.       form to display the file FIELDS.LST.)
  1240.  
  1241.       Rules:
  1242.  
  1243.       There are 5 columns of  fields on this special  form.  List the  field
  1244.       number of those fields you want to operate on in the first column.  If
  1245.       you want a particular field to  right, left, or center justify,  place
  1246.       an "R", "L", or "C" in the second column.  If you want a field to word
  1247.       wrap to another field, place the number of the "wrap-to" field in  the
  1248.       third column.  If you want a field  to be "read only", place a "Y"  in
  1249.       the fourth field.  If you want a field to be used for field  look-ups,
  1250.       place a "1", "2", or "3" in the fifth field, depending on which  look-
  1251.       up file to use.
  1252.  
  1253.       Example:
  1254.  
  1255.       You want fields 1  through 3 to  word wrap, field 4  to be read  only,
  1256.       field 5 to right justify, and field 6 to have look-up capability  from
  1257.  
  1258.                     20 
  1259.                     CastleSoft 
  1260.  
  1261.  
  1262.                    FORM MASTER 
  1263.  
  1264.       look-up file number 1.  Enter the fields as follows:
  1265.         Field   Just   Wrap to   R/O   Look-up
  1266.         -----   ----    -----    ---    -----
  1267.           1               2
  1268.           2               3
  1269.           4                       Y
  1270.           5       R
  1271.           6                               1
  1272.  
  1273.       Notes:
  1274.  
  1275.       Avoid fields  having the  following combinations  of features  as  the
  1276.       results will probably not be desirable:
  1277.       o  justify with word wrap, read only, or look-up
  1278.       o  word wrap with read only
  1279.  
  1280.       If your form is edited in such  a way that fields are added,  removed,
  1281.       or their ordering is changed, you must make corresponding changes here
  1282.       to account for  the changes in  the field numbers.   Otherwise,  these
  1283.       features may not work properly.
  1284.  
  1285.       All field entries on this special  form are checked when returning  to
  1286.       the Form  Master main  menu.   Invalid entries  will be  shown on  the
  1287.       display and replaced with defaults.
  1288.  
  1289.       5.2.1.  Look-Up Files
  1290.  
  1291.       A look-up file is built  with an editor or  word processor.  The  file
  1292.       must be  created  free  of such  things  as  formatting  instructions,
  1293.       footers, headers, dot commands, etc.   If you are using Word Star,  be
  1294.       sure to create a non document file.  You can even use the Form  Master
  1295.       editor providing  you use  the import  /export functions  on the  main
  1296.       menu.  However, the Form Master editor is limited to 132 lines.
  1297.  
  1298.       The format of a look-up file is very simple.  Place the look-up  "key"
  1299.       so it begins in column 1 on any line.  It must be followed by a space,
  1300.       then by what is to be substituted.  Consider the line:
  1301.  
  1302.       1234 Radiator
  1303.  
  1304.       "1234" is the key  and "Radiator" is the  replacement.  If you  placed
  1305.       "1234" in a look-up field  then performed a look-up, "Radiator"  would
  1306.       replace "1234" in that field.
  1307.  
  1308.       Suppose further you want  to have the price  of $100.00 appear in  the
  1309.       field following the  look-up field.   Then the VERY  NEXT line in  the
  1310.       look-up file should have:
  1311.  
  1312.       +1 $100.00
  1313.  
  1314.       The "+1" means "plus 1 field"  from the look-up field.  The  remainder
  1315.       of the  line  shows  the  replacement  item  for  the  plus  1  field.
  1316.       Analogously, a "-11"  would mean  "minus 11 fields"  from the  look-up
  1317.       field.  Here is  an example file (inside  the dashes) containing  more
  1318.       than one item:
  1319.  
  1320.  
  1321.                     21 
  1322.                     CastleSoft 
  1323.  
  1324.  
  1325.                    FORM MASTER 
  1326.  
  1327.       +-------------------------+
  1328.       |1234 Radiator            | <-- look-up item 1
  1329.       |+1 $100.00               |
  1330.       |65 Fuel Pump             | <-- look-up item 2
  1331.       |+1 $50.00                |
  1332.       |Air Filter Air Filter    | <-- look-up item 3
  1333.       |+1 $5.00                 |
  1334.       +-------------------------+
  1335.  
  1336.       Item 3 shows how  "Air Filter" can  be used to  replace itself.   This
  1337.       makes sense if all you want to do is have the price appear in the next
  1338.       field.
  1339.  
  1340.       You can substitute as  many fields as  you want with  one look-up.   A
  1341.       "key" line can be followed by multiple lines of "+n" and "-n" AS  LONG
  1342.       AS THE LINES ARE CONSECUTIVE:
  1343.  
  1344.       +-------------------------+
  1345.       |1234 Radiator            |
  1346.       |+1 $100.00               |
  1347.       |-4 Ajax Distributors     |
  1348.       |-3 ajax address...       |
  1349.       |                         |
  1350.       |65 Fuel Pump             |
  1351.       |+1 $50.00                |
  1352.       +-------------------------+
  1353.  
  1354.       The previous look-up file replaces a look-up field having "1234"  with
  1355.       "Radiator", places $100.00 in the next field, then places the name  of
  1356.       the distributor and address at 4 and 3 fields back.  Notice the  blank
  1357.       line.   It doesn't  do  anything except  make  the look-up  file  more
  1358.       readable.  However, the  blank line should not  lie between the  lines
  1359.       beginning with "1234" and "-3" in the above example.
  1360.  
  1361.       You can separate the  "key" and the "replacement"  items by more  than
  1362.       one space if you want.  This  effectively adds spaces on the front  of
  1363.       the "replacement" when it is substituted  into a field.  This is  also
  1364.       true for lines beginning with a "+" or "-".
  1365.  
  1366.       Clearly, look-up  keys  must not  begin  with a  "+"  or "-"  as  this
  1367.       conflicts with their use for multiple field substitutions.
  1368.  
  1369.       Look-up File Names:   You  have two  options for  naming your  look-up
  1370.       file(s):
  1371.  
  1372.       (1)     Use the  same name  as  your form  but  with an  extension  of
  1373.           ".LU1", ".LU2", and ".LU3"  for the three  look-up files.   In
  1374.           most cases only one look-up file  is needed so don't feel  you
  1375.           have to use  more than 1.   However, it  may be convenient  to
  1376.           keep clients and part numbers in separate files.
  1377.  
  1378.       (2)     If 2 or more forms are to use the same look-up file(s), create
  1379.           a file with the same name  as your form but with an  extension
  1380.           of ".LUP".  This  file is created by  an editor and has  three
  1381.           lines in it.  Line 1 has  the name of the first look-up  file,
  1382.           line 2 the second,  and line 3  the third.   The name of  each
  1383.  
  1384.                     22 
  1385.                     CastleSoft 
  1386.  
  1387.  
  1388.                    FORM MASTER 
  1389.  
  1390.           look-up file can  be any  valid DOS  file name  with the  path
  1391.           included as long as it isn't longer than 40 characters.
  1392.  
  1393.       The second option  allows one look-up  file to be  shared by  multiple
  1394.       forms.  Thus, a change to an address list supporting many forms  needs
  1395.       to be done  only once, instead  of having  to be done  to each  form's
  1396.       look-up file.
  1397.  
  1398.       During a look-up, Form Master checks  for the existence of the  ".LUP"
  1399.       file.  If it doesn't exist, it assumes the look-up file to end with  a
  1400.       ".LU1", ".LU2", or ".LU3" extension, whichever applies for the field.
  1401.  
  1402.       Any ".LU1", ".LU2", ".LU3", or ".LUP" files you create MUST reside  in
  1403.       the same directory as your form.
  1404.  
  1405.  
  1406.       5.3.  Math Operations
  1407.  
  1408.       A special form is  used to define math  operations which allow use  of
  1409.       addition, subtraction, multiplication, division, and powers (including
  1410.       square roots) to solve equations posed by your forms.  When performed,
  1411.       numbers are taken from fields in your form, and from the equations you
  1412.       define, then processed.  Results are  loaded into fields of your  form
  1413.       in various formats  such as  integer, floating  point, and  scientific
  1414.       notation.  This  form is  invoked from the  main menu  by pressing  F9
  1415.       twice followed by F3.
  1416.  
  1417.       There are 16 lines on  this special form in which  you may enter 1  or
  1418.       more mathematical equations.   Each  equation must fit  entirely on  a
  1419.       line, it can not span two lines.   Equations on the same line must  be
  1420.       separated by a space except when merging (explained later).  They  are
  1421.       processed in order from left to right, then top to bottom.   Equations
  1422.       have the following form:
  1423.  
  1424.     Expression=Result          Example:  #15*#16/100=#17
  1425.  
  1426.       "#15*#16/100" is  the  expression  and  "#17" is  the  result.    This
  1427.       expression consists of the three operands:  "#15" for field 15,  "#16"
  1428.       for field  16,  and  "100".    There  are  two  operators:    "*"  for
  1429.       multiplication, and "/" for division.   In this example fields 15  and
  1430.       16 are multiplied together, divided by 100, then placed into field 17.
  1431.  
  1432.       Rules for expressions:
  1433.  
  1434.       o  Consist of 1 or more operands each separated by an operator:
  1435.          +, -, *, /, and ^.
  1436.       o  An expression must begin and end with an operand with one
  1437.          exception:  it may begin with a -.
  1438.       o  Expressions are evaluated left to right.  They are written in a
  1439.          manner similar to the way you would use a simple calculator.
  1440.  
  1441.       Rules for operands:
  1442.  
  1443.       o  May be contents of a field, a number, or 1 of 20 registers
  1444.          (memories).
  1445.  
  1446.  
  1447.                     23 
  1448.                     CastleSoft 
  1449.  
  1450.  
  1451.                    FORM MASTER 
  1452.  
  1453.       o  The contents of a field are represented by the number of that
  1454.          field preceded by a #.  Example:  contents of field 15 are
  1455.          "#15".  A field number may be followed by an "@" sign and a
  1456.          positive integer to perform stepping that simplify long
  1457.          repetitive expressions.  Example:  "#15@3".  See STEPPING at
  1458.          end of this section.
  1459.       o  A number can be an integer or decimal number up to 60 digits
  1460.          long.  It must be positive.
  1461.       o  The 20 registers are represented by the capitol letters A
  1462.          through T.  They are initially zero when Form Master starts.
  1463.  
  1464.       Operators:
  1465.  
  1466.       Addition              +
  1467.       Subtraction           -
  1468.       Multiplication        *
  1469.       Division              /
  1470.       Power                 ^
  1471.  
  1472.       Rules for results:
  1473.  
  1474.       o  Can be loaded into a field, or into 1 of 20 registers.
  1475.       o  A field used for output is specified by the number of that
  1476.          field preceded by a # and followed by a colon and the output
  1477.          format.  Example:  #17:F8.2   "F8.2"is the format.  A default
  1478.          format of F6.2 is assumed if the colon and format are left off.
  1479.          The default allows for numbers ranging from "-99.99" to
  1480.          "999.99".
  1481.       o  The 20 registers are represented by the capitol letters A
  1482.          through T.
  1483.  
  1484.       Rules for formats:
  1485.  
  1486.       o  Possible formats are:  "Iw", "Fw.d", and "Ew.d".
  1487.       o  "Iw" is an integer format (no decimal point) "w" digits wide.
  1488.          Example: 35.4 loaded into a field using an I3 format becomes
  1489.          " 35".
  1490.       o  "Fw.d" is a floating point format (with decimal point) "w"
  1491.          digits wide with "d" digits following the decimal point.
  1492.          Example:  35.4 loaded into a field using an F5.2 format becomes
  1493.          "35.40".
  1494.       o  "Ew.d" is a floating point format (with decimal point) using
  1495.          scientific notation which is "w" digits wide with "d" digits
  1496.          following the decimal point.  Example  35.4 loaded with E10.3
  1497.          becomes "  .354E+02".
  1498.       o  Any number which requires more than "w" digits to load will
  1499.          cause the field to fill with "*'s".
  1500.       o  A format cannot specify more characters "w" than the field is
  1501.          wide or an error will result during execution.
  1502.  
  1503.       Examples:
  1504.  
  1505.       Two equations placed on the same line:
  1506.  
  1507.         #1+#2/100=#3:F5.2 #1+#3*#7=#8:I8
  1508.  
  1509.  
  1510.                     24 
  1511.                     CastleSoft 
  1512.  
  1513.  
  1514.                    FORM MASTER 
  1515.  
  1516.     (1) Add fields 1 and 2, divide by 100, then place in field 3 as
  1517.         number xx.xx, (5 digits wide with 2 decimal places)
  1518.  
  1519.     (2) Field 7 times sum of fields 1 and 3, place into field 8 as
  1520.         xxxxxxxx, (8 digits wide)
  1521.  
  1522.       Use of square root and temporary value:
  1523.  
  1524.           #1+#2=A #3+#4*A^.5=#5:E9.4
  1525.  
  1526.     Square root of ( ( sum of fields 1 and 2 ) times ( sum of fields 3
  1527.     and 4 ) ), place result into field 5 as .xxxxE+xx
  1528.     Note the use of the temporary register "A" to hold the sum of fields
  1529.     1 and 2.  This is necessary since parenthesis are not allows in the
  1530.     equations.
  1531.  
  1532.       Equation beginning with a "-" and using the default format:
  1533.  
  1534.           -#1=#2
  1535.  
  1536.     Field 2 is written as xxx.xx and is the negative of field 1.
  1537.  
  1538.       Merging:
  1539.  
  1540.       If the result of an equation is used as the first operand in the  next
  1541.       equation, the two equations can be merged to save space.  Suppose  you
  1542.       want field 3  to be sum  of fields  1 and 2,  then field 5  to be  the
  1543.       product of fields 3 and 4.  The following two equations:
  1544.  
  1545.           #1+#2=#3:I4 #3*#4=#5
  1546.  
  1547.       can be merged  by removing the  " #3" at the  beginning of the  second
  1548.       equation.  The result is:
  1549.  
  1550.           #1+#2=#3:I4*#4=#5
  1551.  
  1552.       The following equation shows a  way to make field  3 be the square  of
  1553.       the sum of fields 1 and 2:
  1554.  
  1555.           #1+#2=A*A=#3
  1556.  
  1557.       Stepping:
  1558.  
  1559.       Long repetitive  expressions involving  multiplication, addition,  and
  1560.       subtraction can be simplified using a stepping option.  In expressions
  1561.       where the operation is  the same over  uniformly spaced fields  (field
  1562.       number increments by  some constant),  only the first  and last  field
  1563.       numbers and a stepping count are specified:
  1564.  
  1565.           #1+#2+#3+#4+#5=#6       can be replaced by    #1+#5@1=#6
  1566.  
  1567.           #4*#8*#12*#16+#17=#18   can be replaced by    #4*#16@4+#17=#18
  1568.  
  1569.           #7-#9-#11-#13=#15       can be replaced by    #7-#13@2=#15
  1570.  
  1571.       Only positive step counts  are allowed.  The  last field number  minus
  1572.  
  1573.                     25 
  1574.                     CastleSoft 
  1575.  
  1576.  
  1577.                    FORM MASTER 
  1578.  
  1579.       the first field  number in the  stepping loop must  be positive and  a
  1580.       multiple of the step count.
  1581.  
  1582.       Notes:
  1583.  
  1584.       Use F6 to  display all  the fields in  order with  their number,  row,
  1585.       column, and size.  (F6 has been redefined on this form to display  the
  1586.       file FIELDS.LST.)  If your  form is edited in  such a way that  fields
  1587.       are added,  removed,  or their  ordering  is changed,  you  must  make
  1588.       corresponding changes here  to account  for the changes  in the  field
  1589.       numbers.  Otherwise, the math feature may not work properly.
  1590.  
  1591.       To right justify  the result  in the  field, use  the word  processing
  1592.       features form to define  that field as right  justified.  The same  is
  1593.       true for left and center justification.
  1594.  
  1595.       Double precision  arithmetic  (IEEE standard)  is  used for  all  math
  1596.       operations.  This has approximately 15 significant digits of accuracy.
  1597.       All numbers are  converted to  double precision before  use.   Results
  1598.       placed into fields are rounded to the displayed precision.
  1599.  
  1600.       Entries made on  this form  are not  checked until  math is  performed
  1601.       during form execution.   Improperly defined  equations will cause  the
  1602.       math operations to terminate early and display an error message.  This
  1603.       is also true for fields that do  not contain a valid number, and  such
  1604.       conditions such as divide by zero, overflow, etc.
  1605.  
  1606.  
  1607.       6.  Multi-page Forms
  1608.  
  1609.       The form editor allows  a form to be  as long as 132  lines.  This  is
  1610.       enough for 2 full pages.   However, you can create forms thousands  of
  1611.       pages long using a Page file.  This is also the preferred way to  make
  1612.       forms just two pages long as they are easier to modify and maintain.
  1613.  
  1614.       The Page file is a  pure ascii file created with  an editor.  You  can
  1615.       even use the Form  Master editor to  create this file  as long as  you
  1616.       save the file using  the F8 export option.   However, the Form  Master
  1617.       editor is limited to 132 lines so if you use it your forms are limited
  1618.       to 132 pages.  Each line in a Page file specifies the form file to use
  1619.       for that page  plus an optional  command to be  performed before  that
  1620.       page is displayed.   A  Page file with  4 pages  would like  something
  1621.       like:
  1622.           +------------------+
  1623.           |form1 ;command 1  |
  1624.           |form2 ;command 2  |
  1625.           |form3 ;command 3  |
  1626.           |form4 ;command 4  | <- This border is not part of the file
  1627.           +------------------+
  1628.       Here form1.frm is the name of the form file used for page 1, form2.frm
  1629.       for page 2, and so  on.  The four  commands represent DOS commands  or
  1630.       programs to be performed before each page is displayed.  Each  command
  1631.       is optional.  The usefulness of these commands becomes apparent later.
  1632.       The name of the Page file must match the name of the first form  file,
  1633.       except for a .PAG extension.  In  this example, the name of the  above
  1634.       Page file  must  be  form1.pag.   It  must  also reside  in  the  same
  1635.  
  1636.                     26 
  1637.                     CastleSoft 
  1638.  
  1639.  
  1640.                    FORM MASTER 
  1641.  
  1642.       directory as form1.frm.
  1643.  
  1644.       Form Master checks for  the existence of  a Page file  when a form  is
  1645.       executed.  If it exists, the  command on the first line is  performed.
  1646.       The form fields are loaded from  the file FM000001.SAV, if it  exists.
  1647.       The form is now displayed.  The user can step to the next page in  the
  1648.       form by pressing  control-PgDn, or by  pressing F3 if  it hasn't  been
  1649.       redefined.  When paging forward, Form Master does the following:
  1650.       1  performs math calculations for the page,
  1651.       2  saves the fields back to FM000001.SAV (FM000002.SAV if
  1652.          stepping from the second page, FM000003.SAV if ...), creating
  1653.          the file if necessary,
  1654.       3  the form listed on the next line in the Page file is
  1655.          loaded and its command performed,
  1656.       4  this form's fields are loaded from FM000002.SAV (or
  1657.          FM000003.SAV if page three, or ...), if it exists,
  1658.       5  math is performed so fields may be loaded with numbers from
  1659.          a previous page.
  1660.       The second (or  next) page  is now  displayed.   This process  repeats
  1661.       whenever the user pages forward.  Form Master allows the user to  page
  1662.       forward until a blank line or the end of the Page file is encountered.
  1663.  
  1664.       An FMxxxxxx.SAV file  is utilized  for each  page in  the form,  where
  1665.       xxxxxx is the number of the  page.  This provides a theoretical  limit
  1666.       of 999999 pages.   Save files allow each  page in the multi-page  form
  1667.       to be restored when paging backward and are crucial when each page  is
  1668.       printed.
  1669.  
  1670.       Math calculations are performed whenever a page forward is  performed.
  1671.       This is  important as  the  results for  one page  may  be used  on  a
  1672.       following page and the user may overlook performing math.  The  values
  1673.       in all  20  math registers  are  carried  forward to  the  next  page.
  1674.       Calculations proceed from the first page to  the end of the form.   To
  1675.       carry a value forward from a page,  use one of the 20 math  registers.
  1676.       For example, suppose the value to  carry forward is in field 10  which
  1677.       is the sum of fields 8 and 9.  Its math equation could be "#8+#9=#10".
  1678.       By modifying the equation to "#8+#9=C=#10", the value in register C is
  1679.       available to  use in  an  equation on  a later  page.   As  a  further
  1680.       example, suppose the totals at the bottom of the first three pages  in
  1681.       a form need  to be carried  to the first  three fields of  page 4  and
  1682.       summed in  field 4.   Assuming  the totals  from the  three pages  are
  1683.       loaded into registers A, B, and C respectively, the equations for page
  1684.       4 could be "A=#1 B=#2 C=#3 A+B+C=#4".
  1685.  
  1686.       Printing begins at the  first page and proceeds  through all pages  in
  1687.       the form.  This  process is repeated in  the case of multiple  copies.
  1688.       If all the pages in a form must be filled in before printing, consider
  1689.       removing the print capability from all  but the last page of the  form
  1690.       using  function  key  redefinition.     This  is  important  if   math
  1691.       calculations are carried throughout the form.  Otherwise, if only  the
  1692.       first two pages are  filled in before printing,  math is performed  on
  1693.       only two pages and the rest of the form may be incorrect.
  1694.  
  1695.       A likely use for the command lines is to run utilities to create  save
  1696.       files from information  in fields  of previous pages.   For  instance,
  1697.       information entered  on  the first  page  of a  form  may have  to  be
  1698.  
  1699.                     27 
  1700.                     CastleSoft 
  1701.  
  1702.  
  1703.                    FORM MASTER 
  1704.  
  1705.       duplicated in part  or whole on  another page.   The command for  page
  1706.       three may run a utility which reads FM000001.SAV and uses it to  build
  1707.       FM0000003.SAV.  When page three appears, the duplicate information  is
  1708.       already entered.  A  page 4 utility may  utilize data from a  database
  1709.       specified by a  value loaded in  a field on  page 2.   In many  cases,
  1710.       these  utilities  are  easy   to  create  by   a  programmer.     This
  1711.       implementation of multi-page forms provides a VERY POWERFUL capability
  1712.       for dealing with  complex form  problems.  Support  is available  from
  1713.       CastleSoft.
  1714.  
  1715.       Commands in a page file can  cause of execution of another program  or
  1716.       execution of a DOS  function.  To run  another program, place  ";EXE "
  1717.       after the name of  the form file,  then the name  of program with  its
  1718.       ".EXE" or ".COM" extension  followed by its arguments.   To perform  a
  1719.       DOS command, place ";DOS " after  the name of the form file,  followed
  1720.       by the command.  You can also run a program using a DOS command.   For
  1721.       example, in  the case  of a  utility called  UTIL.COM which  uses  one
  1722.       argument,   you  could  use  ";DOS util  argument"  instead  of  ";EXE
  1723.       util.com argument".   However, this  is less  efficient since  another
  1724.       copy of DOS must be loaded.
  1725.  
  1726.       If the user pages backward by pressing control-PgUp or F3, Form Master
  1727.       does the following:
  1728.       1  performs math calculations,
  1729.       2  saves the fields back to the appropriate save file, creating
  1730.          the file if necessary,
  1731.       3  the form listed on the previous line in the Page file is
  1732.          loaded,
  1733.       4  this form's fields are loaded from its save file
  1734.       The previous  page  is  then  displayed.   Note  that  no  command  is
  1735.       performed when paging backward.  This makes sure the previous page  is
  1736.       restored exactly.
  1737.  
  1738.       Now a more realistic example of a page file is given.  Suppose a  four
  1739.       page trip  report form  is  needed with  the  second two  pages  being
  1740.       identical before fill  in, and  the fourth  page utilizes  information
  1741.       from the first page.   Suppose further that  a utility, TRIP.COM,  has
  1742.       been written to build inputs for the fourth page (FM000004.SAV)  using
  1743.       the contents of the  first page (FM000001.SAV).   Also assume for  the
  1744.       first three pages  the fields are  initially blank.   Let the form  be
  1745.       called TRIPREP.FRM.  The Page file must be named TRIPREP.PAG.  Here is
  1746.       its contents:
  1747.           +--------------------------+
  1748.           |triprep ;DOS DEL FM*.SAV  |
  1749.           |triprep.2                 |
  1750.           |triprep.2                 |
  1751.           |triprep.4 ;EXE trip.com   |
  1752.           +--------------------------+
  1753.       Note the first  command clears  any existing  save files  so the  form
  1754.       fields are blank  filled.  Only  three form files  need to be  created
  1755.       since pages 2 and 3 are identical.  The first form has a default  .FRM
  1756.       extension.  The  remaining form  pages have either  a ".2"  or a  ".4"
  1757.       extension and so will not appear in the directory produced by the  F5-
  1758.       F10 load form combination on the main menu.  This is desirable if  you
  1759.       do not want TRIPREP.2 or TRIPREP.4 to be selectable as an  independent
  1760.       form.
  1761.  
  1762.                     28 
  1763.                     CastleSoft 
  1764.  
  1765.  
  1766.                    FORM MASTER 
  1767.  
  1768.       Some differences and features of multi-page forms:
  1769.  
  1770.       Each page  in  a multi-page  form  can  have its  own  custom  printer
  1771.       configuration file and help file.   Each page can use the  pre-printed
  1772.       form option  independent of  the other  pages.   If the  auto fill  in
  1773.       feature (for date,  time, or  form number) places  information into  a
  1774.       field, it won't work if the save  file for that page exists since  the
  1775.       field will  be  updated by  the  save  file.   During  execution,  re-
  1776.       initialization (F2) only restores  the form page back  to when it  was
  1777.       last loaded, not  to its  initial state.   Field  look-ups (F4),  math
  1778.       calculations (F6), field loads (F7), and field saves (F8) are  perform
  1779.       on only the current page.   The default number  of copies to print  is
  1780.       taken from  the first  form file.   The  "number of  copies to  print"
  1781.       values on the other form pages are ignored.  After printing, only  the
  1782.       form number of the first form file is incremented.
  1783.  
  1784.       If a multi-page form is executed from DOS in the following manner:
  1785.           FM multform infile outfile      or      FM multform iofile
  1786.       these input and output  files are ignored  since multi-page forms  use
  1787.       the FMxxxxxx.SAV files.
  1788.  
  1789.       Use of  a math  register for  two  purposes should  be avoided.    For
  1790.       example, carrying a value in register B from page one, updating it  on
  1791.       page three with the equation "B+#1+#2+#3=B=#4", then using it on  page
  1792.       four, leads to a problem.  The value of register B keeps changing each
  1793.       time math is performed on page  three.  This happens when the  perform
  1794.       math function key  is pressed  repeatedly, and  when stepping  between
  1795.       page three and four repeatedly.
  1796.  
  1797.       Multi-page forms represent  a powerful  new feature  for Form  Master.
  1798.       Enhancements are likely.  Feedback from Form Master users will have  a
  1799.       strong impact on future capabilities.
  1800.  
  1801.  
  1802.       7.  Adding More Printer Functions To Form Master
  1803.  
  1804.       Form Master can take advantage of additional functionality inherent in
  1805.       your printer.  This is done  by building the file FM.PRT as  discussed
  1806.       at the end of this section.  During initialization, Form Master checks
  1807.       for the existence of FM.PRT in  the current default directory.  If  it
  1808.       exists, it is read and used instead of the default configuration.   To
  1809.       return to the default configuration, delete or rename FM.PRT.
  1810.  
  1811.       Form Master  now allows  each  form to  have  its own  custom  printer
  1812.       configuration file.  One use of this facility is to set up some  forms
  1813.       to print in  a landscape  mode on  a laser  printer, and  others in  a
  1814.       portrait mode.   A custom  printer configuration  file for  a form  is
  1815.       created by renaming or  copying FM.PRT to xxx.PRT  where "xxx" is  the
  1816.       name of the form.  Form Master looks for xxx.PRT in the same directory
  1817.       as xxx.FRM.  If present, it is used in place of FM.PRT or the  default
  1818.       configuration.
  1819.  
  1820.       There are many options for  adding functionality.  Recall, that  while
  1821.       editing a form, holding down the Alt key and typing a letter  inserted
  1822.       a special character into  the form which  is later interpreted  during
  1823.       printing.  Since  there are 26  letters in the  alphabet, there  would
  1824.  
  1825.                     29 
  1826.                     CastleSoft 
  1827.  
  1828.  
  1829.                    FORM MASTER 
  1830.  
  1831.       appear to be 26 printer  configuration possibilities.  However  Alt-D,
  1832.       Alt-F, and Alt-T are  used for automatic form  date, number, and  time
  1833.       insertion.  Alt-O  is used to  cancel the  line feed after  a line  is
  1834.       printed so  the next  line is  printed on  top  of it.   This  is  how
  1835.       overstriking is done by Form Master.  There are 22 letters left.   All
  1836.       22 possibilities  are available  for printer  configuring.   Some  are
  1837.       reserved for the following functions but may be redefined to meet your
  1838.       needs:
  1839.       Alt-B   Boldface, Enhanced text
  1840.       Alt-C   Compressed text (17 characters per inch)
  1841.       Alt-E   Elite text (12 characters per inch)
  1842.       Alt-H   Higher, Superscript
  1843.       Alt-I   Italic text
  1844.       Alt-L   Lower, Subscript
  1845.       Alt-P   Pica text (10 characters per inch)
  1846.       Alt-U   Underline
  1847.       Alt-X   Expanded text
  1848.       In each of  the 22 possibilities,  a printer invoking  sequence and  a
  1849.       printer canceling sequence can be defined.  These are used by the form
  1850.       executor to send to your printer to set each print mode, and to cancel
  1851.       each mode.
  1852.  
  1853.       Invoking and canceling sequences are utilized in the following manner.
  1854.       During printing, characters are sent to your printer one at a time  as
  1855.       they appear on your form.  When a special printer control character is
  1856.       encountered, the  form  executor  sends  the  invoking  or  cancelling
  1857.       sequence instead.  The first time a special printer control  character
  1858.       is encountered on a line, the  invoking sequence is sent.  The  second
  1859.       time, the cancelling sequence is sent.   The third time, the  invoking
  1860.       sequence is sent, and so on.  Thus you can turn a printer mode on  and
  1861.       off (such as underlining)  as often as  you wish within  a line.   You
  1862.       don't have to  place the  cancelling sequence at  the end  of a  line.
  1863.       When the end of  a line is  reached, the form  executor turns off  any
  1864.       printer options left on by sending the cancelling sequences.
  1865.  
  1866.       It is not necessary to define an invoking or a cancelling sequence for
  1867.       each Alt-letter.  The form executor  sends nothing to your printer  if
  1868.       nothing is defined.  To configure your printer for near letter quality
  1869.       and have it  stay that way  while the  whole form is  printed, do  the
  1870.       following:  Define the invoking sequence  for Alt-A to be whatever  is
  1871.       required by  your  printer  to put  it  into  that mode.    Leave  the
  1872.       cancelling sequence for Alt-A blank.  Then put an Alt-A character into
  1873.       the upper left corner of your form with the editor.
  1874.  
  1875.       Printer configuration also allows you to define a sequence of up to 16
  1876.       characters to send  to your printer  prior to start  of printing,  and
  1877.       another sequence  when printing  is finished.   These  are called  the
  1878.       "initial startup" and "termination" sequences.   For example, you  can
  1879.       use the startup  sequence to  configure your printer  for near  letter
  1880.       quality before printing a form, and the termination sequence to  reset
  1881.       it when through.
  1882.  
  1883.       Steps for printer configuration:
  1884.  
  1885.  
  1886.  
  1887.  
  1888.                     30 
  1889.                     CastleSoft 
  1890.  
  1891.  
  1892.                    FORM MASTER 
  1893.  
  1894.       1  Enter the following command from DOS:
  1895.         CONFIG configfile      <press enter>
  1896.          where "configfile" is the name of a configuration file.   (This
  1897.          assumes that CONFIG.BAT,  FM.EXE, PRINTER.COM, and  PRINTER.FRM
  1898.          are on the default drive.)  The printer configuration form then
  1899.          appears.
  1900.  
  1901.          If "configfile" does not exist, it is created for you when  you
  1902.          finish.  This file contains all your printer control strings so
  1903.          it is wise not  to delete it.   Choose a  name related to  your
  1904.          printer and one you won't forget.
  1905.  
  1906.       2  Fill in the form.   The first  input field is  for the name  of
  1907.          your printer.  Change it if necessary.  This field is displayed
  1908.          on the print  pop-up menu by  the form executor  just prior  to
  1909.          printing your  forms.   Fill  in  the invoking  and  cancelling
  1910.          sequences for  any of  the  22 available  letters you  want  to
  1911.          define.  You must enter the sequences in hexadecimal  notation.
  1912.          Your printer manual should list these sequences in hexadecimal.
  1913.          Contact CastleSoft for support if you have problems here.   You
  1914.          should also fill in the  Printer Mode Description and  Mnemonic
  1915.          fields.  The Printer  Mode is a description  for your own  use.
  1916.          The Mnemonic  field contents  are used  by the  form editor  to
  1917.          display meanings of the Alt-characters  on the top line of  the
  1918.          display.
  1919.  
  1920.          Fill in the  printer "Initial Startup  Sequence" with  anything
  1921.          you want to send before a form is printed.  Fill in the printer
  1922.          "Termination Sequence" with anything you  want to send after  a
  1923.          form is printed.
  1924.  
  1925.       3  Press "ESC" twice.   The program  PRINTER.COM is invoked  auto-
  1926.          matically.  It creates the file "FM.PRT" if it doesn't exist or
  1927.          replaces it if it does.
  1928.  
  1929.       4  Make sure  FM.PRT is  in your  current directory  when you  run
  1930.          FM.EXE.   Form Master  uses this  file, if  it exists,  to  re-
  1931.          configure itself to your printer.
  1932.  
  1933.  
  1934.       8.  Configuring Form Master For Your Printer
  1935.  
  1936.       Configuring Form Master for your printer  is necessary if you want  to
  1937.       print a form using print features where your printer is not compatible
  1938.       with the Epson LX-800 printer.  The method is the same as outlined  in
  1939.       section 7.  If you have problems or questions, contact CastleSoft  for
  1940.       support.
  1941.  
  1942.       It is possible that your printer is Epson LX-800 compatible and yet it
  1943.       does not print lines and  boxes correctly.  Instead italic  characters
  1944.       are printed where  the lines should  be.  For  many printers, this  is
  1945.       caused by the printer using the standard character set instead of  the
  1946.       IBM character  set.    Sometimes  a dip  switch  inside  your  printer
  1947.       controls this.    Changing  its  position  may  correct  the  problem.
  1948.       Another  approach   is  to   configure   using  the   modified   Epson
  1949.  
  1950.  
  1951.                     31 
  1952.                     CastleSoft 
  1953.  
  1954.  
  1955.                    FORM MASTER 
  1956.  
  1957.       configuration file EPSON2.CFG.  Enter the following command:
  1958.           CONFIG EPSON2.CFG
  1959.       Then press ESC  twice after  the printer  configuration form  appears.
  1960.       The file FM.PRT is created, or replaced if it already exists.   Later,
  1961.       if you want to return to  the default configuration, delete or  rename
  1962.       FM.PRT.
  1963.  
  1964.       Users of  HP  compatible laser  printers  should try  the  HPLASER.CFG
  1965.       configuration file instead of EPSON2.CFG.
  1966.  
  1967.       If you are still  having problems printing lines  and boxes, here  are
  1968.       some more tips:  (1) Check your printer manual for different types  of
  1969.       character sets - choose the IBM character set instead of the  standard
  1970.       set.   (2)  Make sure  you  printer is  configured  to receive  8  bit
  1971.       characters.  (3) Try invoking the EPSON2.CFG form as described  above,
  1972.       but modify the  Initial Startup  Sequence on the  form to  one of  the
  1973.       following before pressing ESC twice:
  1974.       1B 74 01
  1975.       1B 36
  1976.       1B 49 01
  1977.       1B 7E 35 01
  1978.       (4) Call your printer manufacturer or dealer and ask how to  configure
  1979.       your printer so it will properly print line and box characters  (using
  1980.       the IBM character set).  If  they specify a hexadecimal sequence,  use
  1981.       it as your  Initial Startup  Sequence.  (5)  Some printers,  including
  1982.       some Epsons, do  not support  these characters.   A shareware  utility
  1983.       such as MPRPR2.ARC allows lines and boxes to be printed on nearly  any
  1984.       Epson by  substituting  appropriate graphics  instructions  for  those
  1985.       characters.  (5) If you have an  HP Laserjet, use the PC-8 symbol  set
  1986.       (front panel setting of IBM-US).
  1987.  
  1988.  
  1989.       9.  Interfacing With Databases & Utilities
  1990.  
  1991.       When a form is executed, Form Master provides the capability to invoke
  1992.       utilities which have access to the fields on the form.  Such a utility
  1993.       could retrieve information from a dBase  file and place data into  the
  1994.       form.  This is available to the user via a function key.
  1995.  
  1996.       By using the advanced features option, a function key on a form can be
  1997.       defined to run another  program or a DOS  command.  When the  function
  1998.       key is used during  form execution, all the  form fields are saved  to
  1999.       the file FM.SAV  before control is  turned over to  the program or  to
  2000.       DOS.  Any utility that  is run at this has  access to FM.SAV.  Such  a
  2001.       utility could prompt  the user for  input, if needed.   Values may  be
  2002.       retrieved from FM.SAV and/or its  contents modified.  Upon  completion
  2003.       of the program or the DOS  command, the contents of FM.SAV are  loaded
  2004.       into the form fields.   Refer to section  5.1 for more information  on
  2005.       function key re-definition.
  2006.  
  2007.       Use of such utilities extends the power of Form Master far beyond that
  2008.       of simply filling in forms.  Many utilities  are easy to code.  It  is
  2009.       likely that  by  the  time  you read  this  utilities  will  exist  to
  2010.       interface forms  to  dBase  files.   Contact  CastleSoft  for  further
  2011.       information.
  2012.  
  2013.  
  2014.                     32 
  2015.                     CastleSoft 
  2016.  
  2017.  
  2018.                    FORM MASTER 
  2019.  
  2020.       10.  Customizing
  2021.  
  2022.       Form Master can be customize in the following ways:  (1) override  the
  2023.       format used for date  and time when  automatically filled into  forms,
  2024.       (2) change the Form  Master default printer, (3)  turn off use of  the
  2025.       speaker, (4) override the color on  the main menu, and (5) use  German
  2026.       style number where commas and periods are swapped.  Most date and time
  2027.       formats (including European) are now supported.  Turning off color may
  2028.       aid those with composite  video monochrone monitors  if the screen  is
  2029.       hard to read.
  2030.  
  2031.       These features are set  up before starting Form  Master using the  DOS
  2032.       SET command.  This command is entered from a DOS prompt:
  2033.  
  2034.           SET FMCNFG=specifier,...,specifier
  2035.  
  2036.           where "specifier" is one of the following:
  2037.               DATE:dfmt       (dfmt is date format)
  2038.               TIME:tfmt       (tfmt is time format)
  2039.               PRINT:pdev      (pdev is the printer device)
  2040.               NOBEEP
  2041.               NOCOLOR
  2042.               CMATH
  2043.  
  2044.       Specifiers can be of any number and be in any order.  USE ALL  CAPITOL
  2045.       LETTERS.  Specifiers  are separated  by commas.   Including  "NOCOLOR"
  2046.       turns off color  on the main  menu.  Including  "NOBEEP" prevents  the
  2047.       speaker from being sounded  by Form Master.   Including "DATE:" and  a
  2048.       date format overrides the default  date format.  Likewise for  "TIME:"
  2049.       and the time format.  Including "PRINT:" allows a different printer to
  2050.       be chosen.  Including "CMATH" swaps commas with periods in all numbers
  2051.       where math is used.
  2052.  
  2053.       Place all desired options into  one SET command.   Do not use the  SET
  2054.       command repeatedly for each  option you want since  only the last  SET
  2055.       command is remembered by DOS.
  2056.  
  2057.       The date format consists of the three capitol letters:  Y (for  year),
  2058.       M (for month), and D (for day), and two separators which can be nearly
  2059.       any symbol except for "=".  The separators are printed.  For  example,
  2060.       February 14, 1991 would be expressed as "1991.02.14" using a format of
  2061.       "Y.M.D", and "02-14-1991" using "M-D-Y".   To have two digits  instead
  2062.       of four digits for the year append an "S" to the format.  For  example
  2063.       "Y-M-DS" yields "91-02-14".
  2064.  
  2065.       The time format consists of the three capitol letters:  H (for  hour),
  2066.       M (for minute), and  S (for second), and  two separators which can  be
  2067.       nearly any symbol except for "=".   For example, 10 hours, 3  minutes,
  2068.       32 seconds would be expressed as "10.03.32" using a format of "H.M.S",
  2069.       and "10:03:32" using "H:M:S".
  2070.  
  2071.       Changing the  default  printer  causes  Form  Master  to  print  to  a
  2072.       different device when F10 is  used.  The new  printer device can be  a
  2073.       device such as "LPT2:", "COM1:", or even a file name.
  2074.  
  2075.  
  2076.  
  2077.                     33 
  2078.                     CastleSoft 
  2079.  
  2080.  
  2081.                    FORM MASTER 
  2082.  
  2083.       German style numbers swap  the meanings of the  comma and period.   If
  2084.       the "CMATH" option is used, make sure all equations and fields used in
  2085.       math calculations are consistent.
  2086.  
  2087.       Example:  Turn off the speaker and use a day.month.year format:
  2088.           SET FMCNFG=NOBEEP,DATE:D.M.Y
  2089.       To continue using this customization, this set command must be entered
  2090.       each time you turn on your  computer and before starting Form  Master,
  2091.       or (a  better way)  place  this command  into your  AUTOEXEC.BAT  file
  2092.       (refer to your DOS manual).
  2093.  
  2094.  
  2095.       11.  If You Have Computer Compatibility Problems
  2096.  
  2097.       Forms are displayed on your monitor by writing directly to the  screen
  2098.       buffer.    This  makes  them  appear   very  fast  but  can  lead   to
  2099.       compatibility problems  if  your computer  is  not completely  IBM  PC
  2100.       compatible.  This causes snow on  IBM computers equipped with the  old
  2101.       color display adapters.  A modified version of Form Master is possible
  2102.       which disables this  feature.   This should  allow compatibility  with
  2103.       more PC clones.  Contact CastleSoft for more information.
  2104.  
  2105.  
  2106.       12.  Form Master Files
  2107.  
  2108.       The following files comprise the Form Master software package:
  2109.  
  2110.       READ.ME         Introduction, file extraction
  2111.       FM.EXE          Form Master program file
  2112.       FM.DOC          Form Master documentation
  2113.  
  2114.       FMMENU.HLP      Main menu help file
  2115.       FMEDIT.HLP      Form creation/maintenance help file
  2116.       FMEXEC.HLP      Form execute help file
  2117.       FMKEY.FM        Form supporting editing function key definitions
  2118.       FMKEY.HLP       Help for function key definitions
  2119.       FMKEY.LU1       Look up file for FMKEY.FRM
  2120.       FMWRD.FM        Form supporting editing word processing features
  2121.       FMWRD.HLP       Help for word processing features
  2122.       FMMTH.FM        Form supporting editing math operations
  2123.       FMMTH.HLP       Help for math operations
  2124.  
  2125.       CONFIG.BAT      Printer configuration procedure
  2126.       PRINTER.COM     Printer configuration program which builds FM.PRT
  2127.       PRINTER.FRM     Form used for configuring your printer.  The
  2128.               default Epson LX-800 inputs are included.
  2129.       PRINTER.HLP     On-screen help for PRINTER.FRM
  2130.       EPSON2.CFG      Alternate printer configuration if you have
  2131.               trouble printing lines and boxes
  2132.       HPLASER.CFG     Printer form load file showing HP Laser Jet
  2133.               configuration
  2134.  
  2135.       LESSON1.FRM     Lesson 1 - Basics
  2136.       LESSON2.FRM     Lesson 2 - Using Attributes
  2137.       LESSON3.FRM     Lesson 3 - Lines And Boxes
  2138.       LESSON4.FRM     Lesson 4 - Special Functions
  2139.  
  2140.                     34 
  2141.                     CastleSoft 
  2142.  
  2143.  
  2144.                    FORM MASTER 
  2145.  
  2146.       TUTORIAL.DOC    Step by step tutorial for building a form
  2147.  
  2148.       REG.FRM         Registration form
  2149.       INVOICE.FRM     Example invoice form
  2150.       COLOR.FRM       Example form showing use of colors if you have a
  2151.               color monitor
  2152.       PTEST.FRM       This form tests some of your printer capabilities
  2153.       MESSAGE.FRM     Example phone message form
  2154.       CALENDAR.BAT    Build calendar form for given month
  2155.               Enter from DOS prompt: CALENDAR
  2156.               A calendar form help file is provided.
  2157.       MONTH.COM       Builds the appropriate month for the Calendar form
  2158.       CALENDAR.FRM    Calendar form
  2159.       CALENDAR.HLP    On-screen help for CALENDAR.FRM
  2160.       SIGNIN.FRM      Example child care sign-in form
  2161.       FEATURES.FRM    Example form showing word wrap, math, etc.
  2162.       FEATURES.HLP    On-screen help for FEATURES.FRM
  2163.       FEATURES.LU1    Look-up file for FEATURES.FRM
  2164.  
  2165.       Some files may be compressed together  to save space and thus may  not
  2166.       appear in your directory listing.  Details to extract these files  are
  2167.       in READ.ME.
  2168.  
  2169.       Required files
  2170.       o  for form execution:  FM.EXE
  2171.          (FMMENU.HLP, FMEXEC.HLP suggested)
  2172.  
  2173.       o  for form creation/editing:  FM.EXE, FMKEY.FM, FMWRD.FM,
  2174.          FMMTH.FM (FMMENU.HLP, FMEDIT.HLP, FMEXEC.HLP, FMKEY.HLP,
  2175.          FMWRD.HLP, FMMTH.HLP suggested)
  2176.  
  2177.       o  to change default printer configuration:  FM.PRT (must create)
  2178.  
  2179.       o  to create or replace FM.PRT:  CONFIG.BAT, FM.EXE, PRINTER.FRM,
  2180.          PRINTER.COM (PRINTER.HLP suggested)
  2181.  
  2182.       All above required and suggested files must be in the same  directory.
  2183.       This is the directory  from which you start  Form Master.  Your  forms
  2184.       can be in another directory or  disk.  Form specific help files,  page
  2185.       files, custom printer control files, and look-up files, (files with an
  2186.       ".LU1", ".LU2", ".LU3", or ".LUP"  extension) should be placed in  the
  2187.       directory where their associated forms reside.
  2188.  
  2189.  
  2190.       13.  Error Messages
  2191.  
  2192.       Following is an alphabetical  list of Form  Master error messages  and
  2193.       explanations:
  2194.  
  2195.       0 to 0 power encountered
  2196.       During math, 0 to the 0 power was encountered.  "1" is used as
  2197.       the result.
  2198.  
  2199.       Bad field number nnn
  2200.       During math, an out of range or bad number "nnn" encountered.
  2201.  
  2202.  
  2203.                     35 
  2204.                     CastleSoft 
  2205.  
  2206.  
  2207.                    FORM MASTER 
  2208.  
  2209.       Bad Field Attribute [xx: x=0-9,A-F]
  2210.       Attributes are 2 characters long where each character is a number
  2211.       from 0 to 9 or a letter from A to F.
  2212.  
  2213.       Bad Form Number [enter number]
  2214.       A valid number must be entered.
  2215.  
  2216.       Bad format: fff, field nnn
  2217.       During math, field number "nnn" had an illegal format of "fff".
  2218.  
  2219.       Bad Line Feed Count [enter number >= 0]
  2220.       A valid number greater than or equal to zero must be entered.
  2221.  
  2222.       Bad Number Of Columns [20-133]
  2223.       A valid number between 20 and 133 must be entered.
  2224.  
  2225.       Bad Number Of Copies To Print [1-99]
  2226.       A valid number between 1 and 99 must be entered.
  2227.  
  2228.       Bad Number Of Rows [1-132]
  2229.       A valid number between 1 and 132 must be entered.
  2230.  
  2231.       Bad operand: xxx
  2232.       During math, a bad value of "xxx" was encountered in an
  2233.       expression.
  2234.  
  2235.       Bad Pre-print Specifier [Y or N]
  2236.       "Y" for pre-printed forms, or "N" for normal printing must be
  2237.       entered.
  2238.  
  2239.       Bad step value: xxx
  2240.       During math, a bad step value of "xxx" was encountered in an
  2241.       equation.
  2242.  
  2243.       Bad value in field nnn: xxx
  2244.       During math, an out of range or bad value of "xxx" was
  2245.       encountered in field "nnn".
  2246.  
  2247.       Could not update form on disk
  2248.       After printing, the form's sequence number is incremented and the
  2249.       form is updated on disk.  This was not possible due an open or
  2250.       write error.  Most likely cause is the diskette containing the
  2251.       form was removed.
  2252.  
  2253.       Divide by zero
  2254.       During math, a divide by zero was encountered.
  2255.  
  2256.       DOS Error
  2257.       Contact CastleSoft.
  2258.  
  2259.       End of file - No more fields
  2260.       When loading fields from a file, the end of the file was reached
  2261.       before the last field was filled.
  2262.  
  2263.       Error writing field file
  2264.       Most likely out of room on diskette.
  2265.  
  2266.                     36 
  2267.                     CastleSoft 
  2268.  
  2269.  
  2270.                    FORM MASTER 
  2271.  
  2272.       Field file create error
  2273.       Most likely out of room on diskette.
  2274.  
  2275.       Field file read error
  2276.       Most likely a diskette was swapped during advanced feature
  2277.       editing.
  2278.  
  2279.       File create error
  2280.       Most likely out of room on diskette.  Possibly too many files in
  2281.       root directory.
  2282.  
  2283.       File not found
  2284.       File not in expected directory or doesn't exit.
  2285.  
  2286.       File open error
  2287.       File not in expected directory or doesn't exit.
  2288.  
  2289.       File read error
  2290.       File bad.
  2291.  
  2292.       File write error
  2293.       Most likely out of room on diskette.
  2294.  
  2295.       Form create error
  2296.       Most likely out of room on diskette.  Possibly too many files in
  2297.       root directory.
  2298.  
  2299.       Form file is bad
  2300.       File does not contain form or is bad.
  2301.  
  2302.       Form not found
  2303.       Form not in expected directory or doesn't exit.
  2304.  
  2305.       Form read error
  2306.       Form file bad.
  2307.  
  2308.       Form write error
  2309.       Most likely out of room on diskette.
  2310.  
  2311.       Form Master internal error
  2312.       Contact CastleSoft.
  2313.  
  2314.       Format too large for field nnn
  2315.       During math, the format specified a width for field "nnn" that was
  2316.       greater than the length of the field.
  2317.  
  2318.       Help file not found: nnn
  2319.       Help file "nnn" not found.
  2320.  
  2321.       Help file read error: nnn
  2322.       File "nnn" is bad.
  2323.  
  2324.       Illegal read-only: n.  Changed to blank
  2325.       The read-only flag must be "Y", "N", or blank.
  2326.  
  2327.  
  2328.  
  2329.                     37 
  2330.                     CastleSoft 
  2331.  
  2332.  
  2333.                    FORM MASTER 
  2334.  
  2335.       Illegal justify: n.  Changed to blank
  2336.       Justify must be "R", "C", "L", or blank.
  2337.  
  2338.       Illegal output specifier: xxx
  2339.       During math, output can only be sent to a field, or to registers A
  2340.       through T.
  2341.  
  2342.       Illegal look-up: n.  Changed to blank
  2343.       The look-up flag must be "1", "2", "3", or blank.
  2344.  
  2345.       Insufficient Memory
  2346.       You don't have enough memory (RAM) to run a DOS shell or program.
  2347.  
  2348.       Look-up file not found: nnn
  2349.       The look-up file "nnn" not in expected directory or doesn't exit.
  2350.  
  2351.       Must enter "A" or "R"
  2352.       Must enter "A" for append to, or "R" for replacement of file.
  2353.  
  2354.       Must enter file name
  2355.  
  2356.       Must enter form name
  2357.  
  2358.       Must pick range from 1 to 24 lines
  2359.       Form editor can only pick from 1 to 24 lines.
  2360.  
  2361.       Name may not have embedded blanks
  2362.       Remove extra spaces from name.
  2363.  
  2364.       Negative power encountered
  2365.       Form Master can not take a number to a negative power.
  2366.  
  2367.       Next field value bad: nnn
  2368.       Number of field to word wrap to, "nnn", bad.
  2369.  
  2370.       No current load file, use F7 first
  2371.       Use F7 for first load from a file then Alt-L for subsequent loads.
  2372.  
  2373.       No current save file, use F8 first
  2374.       Use F8 for first save to a file then Alt-S for subsequent saves.
  2375.  
  2376.       No form files found
  2377.       There are no forms in the specified directory.
  2378.  
  2379.       No input fields present
  2380.       The form has no input fields for entering text.
  2381.  
  2382.       No lines picked, use F5 first
  2383.       Pick lines before trying to put them.
  2384.  
  2385.       No look-up fields present
  2386.       The form has no fields defined for look-up.
  2387.  
  2388.       No match for: nnn
  2389.       The look-up key "nnn" was not found in the look-up file.
  2390.  
  2391.  
  2392.                     38 
  2393.                     CastleSoft 
  2394.  
  2395.  
  2396.                    FORM MASTER 
  2397.  
  2398.       No math operations defined
  2399.       The form has no math expressions defined.
  2400.  
  2401.       Not in look-up field
  2402.       Alt-F only works when the cursor is in a look-up field.
  2403.  
  2404.       Overflow in field nnn
  2405.       During math, the format specified for field "nnn" is too small for
  2406.       the size of the number.
  2407.  
  2408.       Page file access error
  2409.       Page file bad or floppy containing it removed.
  2410.  
  2411.       Power of negative number
  2412.       Form Master can not take the power of a negative number.
  2413.  
  2414.       There is no current form
  2415.       You must load a form first.
  2416.  
  2417.       This form is protected - can't overwrite
  2418.       Writing of this form is not allowed.
  2419.  
  2420.       This is an EDIT ONLY form
  2421.       The intended use of this form is for editing only.
  2422.  
  2423.       This is an EXECUTE ONLY form
  2424.       The intended use of this form is for executing only.
  2425.  
  2426.       Too many fields in form
  2427.       Form Master can only support forms up to 500 fields.
  2428.  
  2429.       Unknown command: nnn
  2430.       A function key has been re-defined to an unknown command.
  2431.  
  2432.       Use F3 to begin/erase line or box
  2433.       Must use F3 before F4 in the editor.
  2434.  
  2435.  
  2436.       14.  Registering Your Copy
  2437.  
  2438.       Form Master is shareware.  It is not free software.  If you find  this
  2439.       program to be it useful, please register it by sending $25.00 to:
  2440.       Brad Simpson
  2441.       CastleSoft
  2442.       P.O. Box 695
  2443.       Castle Rock, CO  80104-0695
  2444.       (303)688-2954
  2445.  
  2446.       A  printed  manual  is  available  for  an  additional  $10  (includes
  2447.       shipping).
  2448.  
  2449.       Reasons for registering your copy are:
  2450.       o  Form Master is an evolving product.  New features are
  2451.          planned.  User support pays the cost of these improvements.
  2452.       o  You will receive the latest version of this package along
  2453.          with telephone support.  If you already have the latest
  2454.  
  2455.                     39 
  2456.                     CastleSoft 
  2457.  
  2458.  
  2459.                    FORM MASTER 
  2460.  
  2461.          copy, the next one will be sent when it becomes available.
  2462.       o  You will be notified of future updates.
  2463.       o  Form Master may just be well worth the registration fee.
  2464.  
  2465.       Form Master has been designed for further growth and flexibility.   If
  2466.       it doesn't quite meet your needs,  it may be possible to customize  it
  2467.       for you specific application.  Any suggestions for future enhancements
  2468.       are welcome.  Users help determine where Form Master goes with respect
  2469.       to  adding  new  features.    The  following  enhancements  are  being
  2470.       considered:
  2471.  
  2472.       o  Improved form editor with more functionality
  2473.       o  Word unwrap to complement word wrap
  2474.       o  Utilities interfacing to database files such as dBase files
  2475.       o  Capability to insert graphics into forms
  2476.       o  More example forms
  2477.       o  Windows and OS/2 compatibility
  2478.  
  2479.       Additional Notes:
  2480.  
  2481.       Form Master  is written  in  Microsoft FORTRAN.    The code  has  been
  2482.       enhanced with additional keystroke, sound, display, and system related
  2483.       functions using  a  utility library,  FORUTIL.LIB.   This  library  is
  2484.       available from CastleSoft for a small  cost.  Versions exist for  both
  2485.       the Microsoft  and  Lahey  compilers.   Contact  CastleSoft  for  more
  2486.       information.
  2487.  
  2488.  
  2489.  
  2490.  
  2491.  
  2492.  
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.                     40 
  2519.                     CastleSoft 
  2520.  
  2521.